@etherisc/gif-next 0.0.2-ebbe63d → 0.0.2-f619be3-760
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +144 -1
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +205 -0
- package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/InstanceLinked.json +35 -0
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +255 -0
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +74 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +4 -0
- package/artifacts/contracts/components/Pool.sol/Pool.json +328 -0
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +4 -0
- package/artifacts/contracts/components/Product.sol/Product.json +346 -0
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +4 -0
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +105 -0
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +4 -0
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +105 -0
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +128 -0
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +42 -0
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/B.sol/B.json +76 -0
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/C.sol/C.json +89 -0
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +128 -0
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +37 -0
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +50 -0
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +63 -0
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +4 -0
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +10 -0
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +4 -0
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +10 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1479 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +4 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1725 -0
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +4 -0
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +400 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccess.json +10 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +4 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +35 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +4 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +50 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +4 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +336 -0
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +4 -0
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +299 -0
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +202 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponent.json +10 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +4 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +205 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +4 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +217 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +141 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +4 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +24 -0
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.json +134 -0
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +4 -0
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.json +182 -0
- package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +4 -0
- package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.json +221 -0
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.json +10 -0
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +4 -0
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +254 -0
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +254 -0
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +4 -0
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.json +10 -0
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +4 -0
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +129 -0
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +155 -0
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +4 -0
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +75 -0
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +127 -0
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +4 -0
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +75 -0
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +196 -0
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.json +10 -0
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.dbg.json +4 -0
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.json +490 -0
- package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.dbg.json +4 -0
- package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.json +45 -0
- package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +4 -0
- package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.json +490 -0
- package/artifacts/contracts/mock/Dip.sol/DIP.dbg.json +4 -0
- package/artifacts/contracts/mock/Dip.sol/DIP.json +338 -0
- package/artifacts/contracts/mock/TestPool.sol/TestPool.dbg.json +4 -0
- package/artifacts/contracts/mock/TestPool.sol/TestPool.json +294 -0
- package/artifacts/contracts/mock/TestProduct.sol/TestProduct.dbg.json +4 -0
- package/artifacts/contracts/mock/TestProduct.sol/TestProduct.json +384 -0
- package/artifacts/contracts/mock/Usdc.sol/USDC.dbg.json +4 -0
- package/artifacts/contracts/mock/Usdc.sol/USDC.json +338 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +4 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +534 -0
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +4 -0
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +452 -0
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +24 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +166 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +188 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +49 -0
- package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +4 -0
- package/artifacts/contracts/registry/Registry.sol/Registerable.json +166 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +4 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.json +256 -0
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +60 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +174 -0
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +10 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +92 -0
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +4 -0
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +174 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +479 -0
- package/contracts/components/Component.sol +77 -0
- package/contracts/components/IPool.sol +15 -0
- package/contracts/components/IProduct.sol +16 -0
- package/contracts/components/Pool.sol +52 -0
- package/contracts/components/Product.sol +89 -0
- package/contracts/experiment/errors/Require.sol +38 -0
- package/contracts/experiment/errors/Revert.sol +44 -0
- package/contracts/experiment/inheritance/A.sol +53 -0
- package/contracts/experiment/inheritance/B.sol +28 -0
- package/contracts/experiment/inheritance/C.sol +34 -0
- package/contracts/experiment/inheritance/IA.sol +13 -0
- package/contracts/experiment/inheritance/IB.sol +10 -0
- package/contracts/experiment/inheritance/IC.sol +12 -0
- package/contracts/experiment/statemachine/Dummy.sol +27 -0
- package/contracts/experiment/statemachine/ISM.sol +25 -0
- package/contracts/experiment/statemachine/README.md +112 -0
- package/contracts/experiment/statemachine/SM.sol +57 -0
- package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
- package/contracts/experiment/types/TypeA.sol +47 -0
- package/contracts/experiment/types/TypeB.sol +29 -0
- package/contracts/instance/IInstance.sol +25 -0
- package/contracts/instance/Instance.sol +72 -0
- package/contracts/instance/access/Access.sol +165 -0
- package/contracts/instance/access/IAccess.sol +63 -0
- package/contracts/instance/component/ComponentModule.sol +274 -0
- package/contracts/instance/component/IComponent.sol +74 -0
- package/contracts/instance/lifecycle/ILifecycle.sol +47 -0
- package/contracts/instance/lifecycle/LifecycleModule.sol +88 -0
- package/contracts/instance/policy/IPolicy.sol +50 -0
- package/contracts/instance/policy/PolicyModule.sol +114 -0
- package/contracts/instance/pool/IPoolModule.sol +23 -0
- package/contracts/instance/pool/PoolModule.sol +81 -0
- package/contracts/instance/product/IProductService.sol +36 -0
- package/contracts/instance/product/ProductService.sol +136 -0
- package/contracts/instance/treasury/ITreasury.sol +91 -0
- package/contracts/instance/treasury/TokenHandler.sol +24 -0
- package/contracts/instance/treasury/TreasuryModule.sol +168 -0
- package/contracts/mock/TestPool.sol +16 -0
- package/contracts/mock/TestProduct.sol +39 -0
- package/contracts/mock/Usdc.sol +26 -0
- package/contracts/registry/ChainNft.sol +135 -0
- package/contracts/registry/IChainNft.sol +21 -0
- package/contracts/registry/IRegistry.sol +67 -0
- package/contracts/registry/Registry.sol +182 -0
- package/contracts/types/Blocknumber.sol +118 -0
- package/contracts/types/ChainId.sol +38 -0
- package/contracts/types/Fee.sol +32 -0
- package/contracts/types/NftId.sol +51 -0
- package/contracts/types/ObjectType.sol +107 -0
- package/contracts/types/StateId.sol +91 -0
- package/contracts/types/Timestamp.sol +102 -0
- package/contracts/types/UFixed.sol +210 -0
- package/package.json +19 -9
- package/artifacts/contracts/Dip.sol/DIP.dbg.json +0 -4
- package/artifacts/contracts/Dip.sol/DIP.json +0 -338
- package/artifacts/contracts/Lock.sol/Lock.dbg.json +0 -4
- package/artifacts/contracts/Lock.sol/Lock.json +0 -74
- package/contracts/Lock.sol +0 -34
- /package/contracts/{Dip.sol → mock/Dip.sol} +0 -0
@@ -0,0 +1,1479 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "IInstance",
|
4
|
+
"sourceName": "contracts/instance/IInstance.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "NftId",
|
10
|
+
"name": "nftId",
|
11
|
+
"type": "uint96"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "ObjectType",
|
15
|
+
"name": "objectType",
|
16
|
+
"type": "uint8"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"internalType": "StateId",
|
20
|
+
"name": "fromStateId",
|
21
|
+
"type": "uint8"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"internalType": "StateId",
|
25
|
+
"name": "toStateId",
|
26
|
+
"type": "uint8"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"name": "ErrorInvalidStateTransition",
|
30
|
+
"type": "error"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"inputs": [
|
34
|
+
{
|
35
|
+
"internalType": "NftId",
|
36
|
+
"name": "nftId",
|
37
|
+
"type": "uint96"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"internalType": "ObjectType",
|
41
|
+
"name": "objectType",
|
42
|
+
"type": "uint8"
|
43
|
+
}
|
44
|
+
],
|
45
|
+
"name": "ErrorNoLifecycle",
|
46
|
+
"type": "error"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"anonymous": false,
|
50
|
+
"inputs": [
|
51
|
+
{
|
52
|
+
"indexed": false,
|
53
|
+
"internalType": "NftId",
|
54
|
+
"name": "nftId",
|
55
|
+
"type": "uint96"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"indexed": false,
|
59
|
+
"internalType": "StateId",
|
60
|
+
"name": "fromStateId",
|
61
|
+
"type": "uint8"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"indexed": false,
|
65
|
+
"internalType": "StateId",
|
66
|
+
"name": "toStateId",
|
67
|
+
"type": "uint8"
|
68
|
+
}
|
69
|
+
],
|
70
|
+
"name": "LogBundleStateChanged",
|
71
|
+
"type": "event"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"anonymous": false,
|
75
|
+
"inputs": [
|
76
|
+
{
|
77
|
+
"indexed": false,
|
78
|
+
"internalType": "NftId",
|
79
|
+
"name": "nftId",
|
80
|
+
"type": "uint96"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"indexed": false,
|
84
|
+
"internalType": "ObjectType",
|
85
|
+
"name": "objectType",
|
86
|
+
"type": "uint8"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"indexed": false,
|
90
|
+
"internalType": "StateId",
|
91
|
+
"name": "fromStateId",
|
92
|
+
"type": "uint8"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"indexed": false,
|
96
|
+
"internalType": "StateId",
|
97
|
+
"name": "toStateId",
|
98
|
+
"type": "uint8"
|
99
|
+
}
|
100
|
+
],
|
101
|
+
"name": "LogComponentStateChanged",
|
102
|
+
"type": "event"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"anonymous": false,
|
106
|
+
"inputs": [
|
107
|
+
{
|
108
|
+
"indexed": false,
|
109
|
+
"internalType": "uint256",
|
110
|
+
"name": "idx",
|
111
|
+
"type": "uint256"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"indexed": false,
|
115
|
+
"internalType": "address",
|
116
|
+
"name": "module",
|
117
|
+
"type": "address"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"indexed": false,
|
121
|
+
"internalType": "string",
|
122
|
+
"name": "comment",
|
123
|
+
"type": "string"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"name": "LogDebug",
|
127
|
+
"type": "event"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"anonymous": false,
|
131
|
+
"inputs": [
|
132
|
+
{
|
133
|
+
"indexed": false,
|
134
|
+
"internalType": "NftId",
|
135
|
+
"name": "nftId",
|
136
|
+
"type": "uint96"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"indexed": false,
|
140
|
+
"internalType": "StateId",
|
141
|
+
"name": "fromStateId",
|
142
|
+
"type": "uint8"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"indexed": false,
|
146
|
+
"internalType": "StateId",
|
147
|
+
"name": "toStateId",
|
148
|
+
"type": "uint8"
|
149
|
+
}
|
150
|
+
],
|
151
|
+
"name": "LogPolicyStateChanged",
|
152
|
+
"type": "event"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"inputs": [],
|
156
|
+
"name": "ORACLE_OWNER_ROLE",
|
157
|
+
"outputs": [
|
158
|
+
{
|
159
|
+
"internalType": "bytes32",
|
160
|
+
"name": "role",
|
161
|
+
"type": "bytes32"
|
162
|
+
}
|
163
|
+
],
|
164
|
+
"stateMutability": "view",
|
165
|
+
"type": "function"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"inputs": [],
|
169
|
+
"name": "POOL_OWNER_ROLE",
|
170
|
+
"outputs": [
|
171
|
+
{
|
172
|
+
"internalType": "bytes32",
|
173
|
+
"name": "role",
|
174
|
+
"type": "bytes32"
|
175
|
+
}
|
176
|
+
],
|
177
|
+
"stateMutability": "view",
|
178
|
+
"type": "function"
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"inputs": [],
|
182
|
+
"name": "PRODUCT_OWNER_ROLE",
|
183
|
+
"outputs": [
|
184
|
+
{
|
185
|
+
"internalType": "bytes32",
|
186
|
+
"name": "role",
|
187
|
+
"type": "bytes32"
|
188
|
+
}
|
189
|
+
],
|
190
|
+
"stateMutability": "view",
|
191
|
+
"type": "function"
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"inputs": [
|
195
|
+
{
|
196
|
+
"internalType": "NftId",
|
197
|
+
"name": "nftId",
|
198
|
+
"type": "uint96"
|
199
|
+
}
|
200
|
+
],
|
201
|
+
"name": "activate",
|
202
|
+
"outputs": [],
|
203
|
+
"stateMutability": "nonpayable",
|
204
|
+
"type": "function"
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"inputs": [
|
208
|
+
{
|
209
|
+
"internalType": "uint256",
|
210
|
+
"name": "amount",
|
211
|
+
"type": "uint256"
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"components": [
|
215
|
+
{
|
216
|
+
"internalType": "UFixed",
|
217
|
+
"name": "fractionalFee",
|
218
|
+
"type": "uint256"
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"internalType": "uint256",
|
222
|
+
"name": "fixedFee",
|
223
|
+
"type": "uint256"
|
224
|
+
}
|
225
|
+
],
|
226
|
+
"internalType": "struct Fee",
|
227
|
+
"name": "fee",
|
228
|
+
"type": "tuple"
|
229
|
+
}
|
230
|
+
],
|
231
|
+
"name": "calculateFeeAmount",
|
232
|
+
"outputs": [
|
233
|
+
{
|
234
|
+
"internalType": "uint256",
|
235
|
+
"name": "feeAmount",
|
236
|
+
"type": "uint256"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"internalType": "uint256",
|
240
|
+
"name": "netAmount",
|
241
|
+
"type": "uint256"
|
242
|
+
}
|
243
|
+
],
|
244
|
+
"stateMutability": "pure",
|
245
|
+
"type": "function"
|
246
|
+
},
|
247
|
+
{
|
248
|
+
"inputs": [],
|
249
|
+
"name": "components",
|
250
|
+
"outputs": [
|
251
|
+
{
|
252
|
+
"internalType": "uint256",
|
253
|
+
"name": "numberOfCompnents",
|
254
|
+
"type": "uint256"
|
255
|
+
}
|
256
|
+
],
|
257
|
+
"stateMutability": "view",
|
258
|
+
"type": "function"
|
259
|
+
},
|
260
|
+
{
|
261
|
+
"inputs": [
|
262
|
+
{
|
263
|
+
"components": [
|
264
|
+
{
|
265
|
+
"internalType": "NftId",
|
266
|
+
"name": "nftId",
|
267
|
+
"type": "uint96"
|
268
|
+
},
|
269
|
+
{
|
270
|
+
"internalType": "NftId",
|
271
|
+
"name": "parentNftId",
|
272
|
+
"type": "uint96"
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"internalType": "ObjectType",
|
276
|
+
"name": "objectType",
|
277
|
+
"type": "uint8"
|
278
|
+
},
|
279
|
+
{
|
280
|
+
"internalType": "address",
|
281
|
+
"name": "objectAddress",
|
282
|
+
"type": "address"
|
283
|
+
},
|
284
|
+
{
|
285
|
+
"internalType": "address",
|
286
|
+
"name": "initialOwner",
|
287
|
+
"type": "address"
|
288
|
+
}
|
289
|
+
],
|
290
|
+
"internalType": "struct IRegistry.RegistryInfo",
|
291
|
+
"name": "productInfo",
|
292
|
+
"type": "tuple"
|
293
|
+
},
|
294
|
+
{
|
295
|
+
"internalType": "address",
|
296
|
+
"name": "applicationOwner",
|
297
|
+
"type": "address"
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"internalType": "uint256",
|
301
|
+
"name": "sumInsuredAmount",
|
302
|
+
"type": "uint256"
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"internalType": "uint256",
|
306
|
+
"name": "premiumAmount",
|
307
|
+
"type": "uint256"
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"internalType": "uint256",
|
311
|
+
"name": "lifetime",
|
312
|
+
"type": "uint256"
|
313
|
+
},
|
314
|
+
{
|
315
|
+
"internalType": "NftId",
|
316
|
+
"name": "bundleNftId",
|
317
|
+
"type": "uint96"
|
318
|
+
}
|
319
|
+
],
|
320
|
+
"name": "createApplication",
|
321
|
+
"outputs": [
|
322
|
+
{
|
323
|
+
"internalType": "NftId",
|
324
|
+
"name": "nftId",
|
325
|
+
"type": "uint96"
|
326
|
+
}
|
327
|
+
],
|
328
|
+
"stateMutability": "nonpayable",
|
329
|
+
"type": "function"
|
330
|
+
},
|
331
|
+
{
|
332
|
+
"inputs": [
|
333
|
+
{
|
334
|
+
"internalType": "string",
|
335
|
+
"name": "roleName",
|
336
|
+
"type": "string"
|
337
|
+
}
|
338
|
+
],
|
339
|
+
"name": "createRole",
|
340
|
+
"outputs": [
|
341
|
+
{
|
342
|
+
"internalType": "bytes32",
|
343
|
+
"name": "role",
|
344
|
+
"type": "bytes32"
|
345
|
+
}
|
346
|
+
],
|
347
|
+
"stateMutability": "nonpayable",
|
348
|
+
"type": "function"
|
349
|
+
},
|
350
|
+
{
|
351
|
+
"inputs": [
|
352
|
+
{
|
353
|
+
"internalType": "bytes32",
|
354
|
+
"name": "role",
|
355
|
+
"type": "bytes32"
|
356
|
+
}
|
357
|
+
],
|
358
|
+
"name": "disableRole",
|
359
|
+
"outputs": [],
|
360
|
+
"stateMutability": "nonpayable",
|
361
|
+
"type": "function"
|
362
|
+
},
|
363
|
+
{
|
364
|
+
"inputs": [
|
365
|
+
{
|
366
|
+
"internalType": "bytes32",
|
367
|
+
"name": "role",
|
368
|
+
"type": "bytes32"
|
369
|
+
}
|
370
|
+
],
|
371
|
+
"name": "enableRole",
|
372
|
+
"outputs": [],
|
373
|
+
"stateMutability": "nonpayable",
|
374
|
+
"type": "function"
|
375
|
+
},
|
376
|
+
{
|
377
|
+
"inputs": [
|
378
|
+
{
|
379
|
+
"internalType": "NftId",
|
380
|
+
"name": "nftId",
|
381
|
+
"type": "uint96"
|
382
|
+
}
|
383
|
+
],
|
384
|
+
"name": "getBundleNftForPolicy",
|
385
|
+
"outputs": [
|
386
|
+
{
|
387
|
+
"internalType": "NftId",
|
388
|
+
"name": "bundleNft",
|
389
|
+
"type": "uint96"
|
390
|
+
}
|
391
|
+
],
|
392
|
+
"stateMutability": "view",
|
393
|
+
"type": "function"
|
394
|
+
},
|
395
|
+
{
|
396
|
+
"inputs": [
|
397
|
+
{
|
398
|
+
"internalType": "address",
|
399
|
+
"name": "componentAddress",
|
400
|
+
"type": "address"
|
401
|
+
}
|
402
|
+
],
|
403
|
+
"name": "getComponentId",
|
404
|
+
"outputs": [
|
405
|
+
{
|
406
|
+
"internalType": "NftId",
|
407
|
+
"name": "nftId",
|
408
|
+
"type": "uint96"
|
409
|
+
}
|
410
|
+
],
|
411
|
+
"stateMutability": "view",
|
412
|
+
"type": "function"
|
413
|
+
},
|
414
|
+
{
|
415
|
+
"inputs": [
|
416
|
+
{
|
417
|
+
"internalType": "uint256",
|
418
|
+
"name": "idx",
|
419
|
+
"type": "uint256"
|
420
|
+
}
|
421
|
+
],
|
422
|
+
"name": "getComponentId",
|
423
|
+
"outputs": [
|
424
|
+
{
|
425
|
+
"internalType": "NftId",
|
426
|
+
"name": "nftId",
|
427
|
+
"type": "uint96"
|
428
|
+
}
|
429
|
+
],
|
430
|
+
"stateMutability": "view",
|
431
|
+
"type": "function"
|
432
|
+
},
|
433
|
+
{
|
434
|
+
"inputs": [
|
435
|
+
{
|
436
|
+
"internalType": "NftId",
|
437
|
+
"name": "nftId",
|
438
|
+
"type": "uint96"
|
439
|
+
}
|
440
|
+
],
|
441
|
+
"name": "getComponentInfo",
|
442
|
+
"outputs": [
|
443
|
+
{
|
444
|
+
"components": [
|
445
|
+
{
|
446
|
+
"internalType": "NftId",
|
447
|
+
"name": "nftId",
|
448
|
+
"type": "uint96"
|
449
|
+
},
|
450
|
+
{
|
451
|
+
"internalType": "StateId",
|
452
|
+
"name": "state",
|
453
|
+
"type": "uint8"
|
454
|
+
},
|
455
|
+
{
|
456
|
+
"internalType": "contract IERC20Metadata",
|
457
|
+
"name": "token",
|
458
|
+
"type": "address"
|
459
|
+
}
|
460
|
+
],
|
461
|
+
"internalType": "struct IComponent.ComponentInfo",
|
462
|
+
"name": "info",
|
463
|
+
"type": "tuple"
|
464
|
+
}
|
465
|
+
],
|
466
|
+
"stateMutability": "view",
|
467
|
+
"type": "function"
|
468
|
+
},
|
469
|
+
{
|
470
|
+
"inputs": [],
|
471
|
+
"name": "getComponentOwnerService",
|
472
|
+
"outputs": [
|
473
|
+
{
|
474
|
+
"internalType": "contract IComponentOwnerService",
|
475
|
+
"name": "",
|
476
|
+
"type": "address"
|
477
|
+
}
|
478
|
+
],
|
479
|
+
"stateMutability": "view",
|
480
|
+
"type": "function"
|
481
|
+
},
|
482
|
+
{
|
483
|
+
"inputs": [],
|
484
|
+
"name": "getData",
|
485
|
+
"outputs": [
|
486
|
+
{
|
487
|
+
"internalType": "bytes",
|
488
|
+
"name": "data",
|
489
|
+
"type": "bytes"
|
490
|
+
}
|
491
|
+
],
|
492
|
+
"stateMutability": "view",
|
493
|
+
"type": "function"
|
494
|
+
},
|
495
|
+
{
|
496
|
+
"inputs": [],
|
497
|
+
"name": "getInitialOwner",
|
498
|
+
"outputs": [
|
499
|
+
{
|
500
|
+
"internalType": "address",
|
501
|
+
"name": "initialOwner",
|
502
|
+
"type": "address"
|
503
|
+
}
|
504
|
+
],
|
505
|
+
"stateMutability": "view",
|
506
|
+
"type": "function"
|
507
|
+
},
|
508
|
+
{
|
509
|
+
"inputs": [
|
510
|
+
{
|
511
|
+
"internalType": "ObjectType",
|
512
|
+
"name": "objectType",
|
513
|
+
"type": "uint8"
|
514
|
+
}
|
515
|
+
],
|
516
|
+
"name": "getInitialState",
|
517
|
+
"outputs": [
|
518
|
+
{
|
519
|
+
"internalType": "StateId",
|
520
|
+
"name": "",
|
521
|
+
"type": "uint8"
|
522
|
+
}
|
523
|
+
],
|
524
|
+
"stateMutability": "view",
|
525
|
+
"type": "function"
|
526
|
+
},
|
527
|
+
{
|
528
|
+
"inputs": [],
|
529
|
+
"name": "getNftId",
|
530
|
+
"outputs": [
|
531
|
+
{
|
532
|
+
"internalType": "NftId",
|
533
|
+
"name": "nftId",
|
534
|
+
"type": "uint96"
|
535
|
+
}
|
536
|
+
],
|
537
|
+
"stateMutability": "view",
|
538
|
+
"type": "function"
|
539
|
+
},
|
540
|
+
{
|
541
|
+
"inputs": [],
|
542
|
+
"name": "getOwner",
|
543
|
+
"outputs": [
|
544
|
+
{
|
545
|
+
"internalType": "address",
|
546
|
+
"name": "owner",
|
547
|
+
"type": "address"
|
548
|
+
}
|
549
|
+
],
|
550
|
+
"stateMutability": "view",
|
551
|
+
"type": "function"
|
552
|
+
},
|
553
|
+
{
|
554
|
+
"inputs": [],
|
555
|
+
"name": "getParentNftId",
|
556
|
+
"outputs": [
|
557
|
+
{
|
558
|
+
"internalType": "NftId",
|
559
|
+
"name": "parentNftId",
|
560
|
+
"type": "uint96"
|
561
|
+
}
|
562
|
+
],
|
563
|
+
"stateMutability": "view",
|
564
|
+
"type": "function"
|
565
|
+
},
|
566
|
+
{
|
567
|
+
"inputs": [
|
568
|
+
{
|
569
|
+
"internalType": "NftId",
|
570
|
+
"name": "nftId",
|
571
|
+
"type": "uint96"
|
572
|
+
}
|
573
|
+
],
|
574
|
+
"name": "getPolicyInfo",
|
575
|
+
"outputs": [
|
576
|
+
{
|
577
|
+
"components": [
|
578
|
+
{
|
579
|
+
"internalType": "NftId",
|
580
|
+
"name": "nftId",
|
581
|
+
"type": "uint96"
|
582
|
+
},
|
583
|
+
{
|
584
|
+
"internalType": "StateId",
|
585
|
+
"name": "state",
|
586
|
+
"type": "uint8"
|
587
|
+
},
|
588
|
+
{
|
589
|
+
"internalType": "uint256",
|
590
|
+
"name": "sumInsuredAmount",
|
591
|
+
"type": "uint256"
|
592
|
+
},
|
593
|
+
{
|
594
|
+
"internalType": "uint256",
|
595
|
+
"name": "premiumAmount",
|
596
|
+
"type": "uint256"
|
597
|
+
},
|
598
|
+
{
|
599
|
+
"internalType": "uint256",
|
600
|
+
"name": "premiumPaidAmount",
|
601
|
+
"type": "uint256"
|
602
|
+
},
|
603
|
+
{
|
604
|
+
"internalType": "uint256",
|
605
|
+
"name": "lifetime",
|
606
|
+
"type": "uint256"
|
607
|
+
},
|
608
|
+
{
|
609
|
+
"internalType": "uint256",
|
610
|
+
"name": "createdAt",
|
611
|
+
"type": "uint256"
|
612
|
+
},
|
613
|
+
{
|
614
|
+
"internalType": "uint256",
|
615
|
+
"name": "updatedAt",
|
616
|
+
"type": "uint256"
|
617
|
+
},
|
618
|
+
{
|
619
|
+
"internalType": "uint256",
|
620
|
+
"name": "activatedAt",
|
621
|
+
"type": "uint256"
|
622
|
+
},
|
623
|
+
{
|
624
|
+
"internalType": "uint256",
|
625
|
+
"name": "expiredAt",
|
626
|
+
"type": "uint256"
|
627
|
+
},
|
628
|
+
{
|
629
|
+
"internalType": "uint256",
|
630
|
+
"name": "closedAt",
|
631
|
+
"type": "uint256"
|
632
|
+
}
|
633
|
+
],
|
634
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
635
|
+
"name": "info",
|
636
|
+
"type": "tuple"
|
637
|
+
}
|
638
|
+
],
|
639
|
+
"stateMutability": "view",
|
640
|
+
"type": "function"
|
641
|
+
},
|
642
|
+
{
|
643
|
+
"inputs": [
|
644
|
+
{
|
645
|
+
"internalType": "NftId",
|
646
|
+
"name": "nftId",
|
647
|
+
"type": "uint96"
|
648
|
+
}
|
649
|
+
],
|
650
|
+
"name": "getPoolInfo",
|
651
|
+
"outputs": [
|
652
|
+
{
|
653
|
+
"components": [
|
654
|
+
{
|
655
|
+
"internalType": "NftId",
|
656
|
+
"name": "nftId",
|
657
|
+
"type": "uint96"
|
658
|
+
},
|
659
|
+
{
|
660
|
+
"internalType": "uint256",
|
661
|
+
"name": "capital",
|
662
|
+
"type": "uint256"
|
663
|
+
},
|
664
|
+
{
|
665
|
+
"internalType": "uint256",
|
666
|
+
"name": "lockedCapital",
|
667
|
+
"type": "uint256"
|
668
|
+
}
|
669
|
+
],
|
670
|
+
"internalType": "struct IPool.PoolInfo",
|
671
|
+
"name": "info",
|
672
|
+
"type": "tuple"
|
673
|
+
}
|
674
|
+
],
|
675
|
+
"stateMutability": "view",
|
676
|
+
"type": "function"
|
677
|
+
},
|
678
|
+
{
|
679
|
+
"inputs": [
|
680
|
+
{
|
681
|
+
"internalType": "NftId",
|
682
|
+
"name": "poolNftId",
|
683
|
+
"type": "uint96"
|
684
|
+
}
|
685
|
+
],
|
686
|
+
"name": "getPoolSetup",
|
687
|
+
"outputs": [
|
688
|
+
{
|
689
|
+
"components": [
|
690
|
+
{
|
691
|
+
"internalType": "NftId",
|
692
|
+
"name": "poolNftId",
|
693
|
+
"type": "uint96"
|
694
|
+
},
|
695
|
+
{
|
696
|
+
"internalType": "address",
|
697
|
+
"name": "wallet",
|
698
|
+
"type": "address"
|
699
|
+
},
|
700
|
+
{
|
701
|
+
"components": [
|
702
|
+
{
|
703
|
+
"internalType": "UFixed",
|
704
|
+
"name": "fractionalFee",
|
705
|
+
"type": "uint256"
|
706
|
+
},
|
707
|
+
{
|
708
|
+
"internalType": "uint256",
|
709
|
+
"name": "fixedFee",
|
710
|
+
"type": "uint256"
|
711
|
+
}
|
712
|
+
],
|
713
|
+
"internalType": "struct Fee",
|
714
|
+
"name": "stakingFee",
|
715
|
+
"type": "tuple"
|
716
|
+
},
|
717
|
+
{
|
718
|
+
"components": [
|
719
|
+
{
|
720
|
+
"internalType": "UFixed",
|
721
|
+
"name": "fractionalFee",
|
722
|
+
"type": "uint256"
|
723
|
+
},
|
724
|
+
{
|
725
|
+
"internalType": "uint256",
|
726
|
+
"name": "fixedFee",
|
727
|
+
"type": "uint256"
|
728
|
+
}
|
729
|
+
],
|
730
|
+
"internalType": "struct Fee",
|
731
|
+
"name": "performanceFee",
|
732
|
+
"type": "tuple"
|
733
|
+
}
|
734
|
+
],
|
735
|
+
"internalType": "struct ITreasuryModule.PoolSetup",
|
736
|
+
"name": "setup",
|
737
|
+
"type": "tuple"
|
738
|
+
}
|
739
|
+
],
|
740
|
+
"stateMutability": "view",
|
741
|
+
"type": "function"
|
742
|
+
},
|
743
|
+
{
|
744
|
+
"inputs": [],
|
745
|
+
"name": "getProductService",
|
746
|
+
"outputs": [
|
747
|
+
{
|
748
|
+
"internalType": "contract IProductService",
|
749
|
+
"name": "",
|
750
|
+
"type": "address"
|
751
|
+
}
|
752
|
+
],
|
753
|
+
"stateMutability": "view",
|
754
|
+
"type": "function"
|
755
|
+
},
|
756
|
+
{
|
757
|
+
"inputs": [
|
758
|
+
{
|
759
|
+
"internalType": "NftId",
|
760
|
+
"name": "productNftId",
|
761
|
+
"type": "uint96"
|
762
|
+
}
|
763
|
+
],
|
764
|
+
"name": "getProductSetup",
|
765
|
+
"outputs": [
|
766
|
+
{
|
767
|
+
"components": [
|
768
|
+
{
|
769
|
+
"internalType": "NftId",
|
770
|
+
"name": "productNftId",
|
771
|
+
"type": "uint96"
|
772
|
+
},
|
773
|
+
{
|
774
|
+
"internalType": "NftId",
|
775
|
+
"name": "distributorNftId",
|
776
|
+
"type": "uint96"
|
777
|
+
},
|
778
|
+
{
|
779
|
+
"internalType": "NftId",
|
780
|
+
"name": "poolNftId",
|
781
|
+
"type": "uint96"
|
782
|
+
},
|
783
|
+
{
|
784
|
+
"internalType": "contract IERC20",
|
785
|
+
"name": "token",
|
786
|
+
"type": "address"
|
787
|
+
},
|
788
|
+
{
|
789
|
+
"internalType": "contract TokenHandler",
|
790
|
+
"name": "tokenHandler",
|
791
|
+
"type": "address"
|
792
|
+
},
|
793
|
+
{
|
794
|
+
"internalType": "address",
|
795
|
+
"name": "wallet",
|
796
|
+
"type": "address"
|
797
|
+
},
|
798
|
+
{
|
799
|
+
"components": [
|
800
|
+
{
|
801
|
+
"internalType": "UFixed",
|
802
|
+
"name": "fractionalFee",
|
803
|
+
"type": "uint256"
|
804
|
+
},
|
805
|
+
{
|
806
|
+
"internalType": "uint256",
|
807
|
+
"name": "fixedFee",
|
808
|
+
"type": "uint256"
|
809
|
+
}
|
810
|
+
],
|
811
|
+
"internalType": "struct Fee",
|
812
|
+
"name": "policyFee",
|
813
|
+
"type": "tuple"
|
814
|
+
},
|
815
|
+
{
|
816
|
+
"components": [
|
817
|
+
{
|
818
|
+
"internalType": "UFixed",
|
819
|
+
"name": "fractionalFee",
|
820
|
+
"type": "uint256"
|
821
|
+
},
|
822
|
+
{
|
823
|
+
"internalType": "uint256",
|
824
|
+
"name": "fixedFee",
|
825
|
+
"type": "uint256"
|
826
|
+
}
|
827
|
+
],
|
828
|
+
"internalType": "struct Fee",
|
829
|
+
"name": "processingFee",
|
830
|
+
"type": "tuple"
|
831
|
+
}
|
832
|
+
],
|
833
|
+
"internalType": "struct ITreasuryModule.ProductSetup",
|
834
|
+
"name": "setup",
|
835
|
+
"type": "tuple"
|
836
|
+
}
|
837
|
+
],
|
838
|
+
"stateMutability": "view",
|
839
|
+
"type": "function"
|
840
|
+
},
|
841
|
+
{
|
842
|
+
"inputs": [],
|
843
|
+
"name": "getRegistry",
|
844
|
+
"outputs": [
|
845
|
+
{
|
846
|
+
"internalType": "contract IRegistry",
|
847
|
+
"name": "registry",
|
848
|
+
"type": "address"
|
849
|
+
}
|
850
|
+
],
|
851
|
+
"stateMutability": "view",
|
852
|
+
"type": "function"
|
853
|
+
},
|
854
|
+
{
|
855
|
+
"inputs": [
|
856
|
+
{
|
857
|
+
"internalType": "uint256",
|
858
|
+
"name": "idx",
|
859
|
+
"type": "uint256"
|
860
|
+
}
|
861
|
+
],
|
862
|
+
"name": "getRole",
|
863
|
+
"outputs": [
|
864
|
+
{
|
865
|
+
"internalType": "bytes32",
|
866
|
+
"name": "role",
|
867
|
+
"type": "bytes32"
|
868
|
+
}
|
869
|
+
],
|
870
|
+
"stateMutability": "view",
|
871
|
+
"type": "function"
|
872
|
+
},
|
873
|
+
{
|
874
|
+
"inputs": [],
|
875
|
+
"name": "getRoleCount",
|
876
|
+
"outputs": [
|
877
|
+
{
|
878
|
+
"internalType": "uint256",
|
879
|
+
"name": "roles",
|
880
|
+
"type": "uint256"
|
881
|
+
}
|
882
|
+
],
|
883
|
+
"stateMutability": "view",
|
884
|
+
"type": "function"
|
885
|
+
},
|
886
|
+
{
|
887
|
+
"inputs": [
|
888
|
+
{
|
889
|
+
"internalType": "string",
|
890
|
+
"name": "roleName",
|
891
|
+
"type": "string"
|
892
|
+
}
|
893
|
+
],
|
894
|
+
"name": "getRoleForName",
|
895
|
+
"outputs": [
|
896
|
+
{
|
897
|
+
"internalType": "bytes32",
|
898
|
+
"name": "role",
|
899
|
+
"type": "bytes32"
|
900
|
+
}
|
901
|
+
],
|
902
|
+
"stateMutability": "pure",
|
903
|
+
"type": "function"
|
904
|
+
},
|
905
|
+
{
|
906
|
+
"inputs": [
|
907
|
+
{
|
908
|
+
"internalType": "bytes32",
|
909
|
+
"name": "role",
|
910
|
+
"type": "bytes32"
|
911
|
+
}
|
912
|
+
],
|
913
|
+
"name": "getRoleInfo",
|
914
|
+
"outputs": [
|
915
|
+
{
|
916
|
+
"components": [
|
917
|
+
{
|
918
|
+
"internalType": "bytes32",
|
919
|
+
"name": "id",
|
920
|
+
"type": "bytes32"
|
921
|
+
},
|
922
|
+
{
|
923
|
+
"internalType": "string",
|
924
|
+
"name": "name",
|
925
|
+
"type": "string"
|
926
|
+
},
|
927
|
+
{
|
928
|
+
"internalType": "bool",
|
929
|
+
"name": "isActive",
|
930
|
+
"type": "bool"
|
931
|
+
}
|
932
|
+
],
|
933
|
+
"internalType": "struct IAccess.RoleInfo",
|
934
|
+
"name": "info",
|
935
|
+
"type": "tuple"
|
936
|
+
}
|
937
|
+
],
|
938
|
+
"stateMutability": "view",
|
939
|
+
"type": "function"
|
940
|
+
},
|
941
|
+
{
|
942
|
+
"inputs": [
|
943
|
+
{
|
944
|
+
"internalType": "bytes32",
|
945
|
+
"name": "role",
|
946
|
+
"type": "bytes32"
|
947
|
+
},
|
948
|
+
{
|
949
|
+
"internalType": "uint256",
|
950
|
+
"name": "idx",
|
951
|
+
"type": "uint256"
|
952
|
+
}
|
953
|
+
],
|
954
|
+
"name": "getRoleMember",
|
955
|
+
"outputs": [
|
956
|
+
{
|
957
|
+
"internalType": "address",
|
958
|
+
"name": "roleMembers",
|
959
|
+
"type": "address"
|
960
|
+
}
|
961
|
+
],
|
962
|
+
"stateMutability": "view",
|
963
|
+
"type": "function"
|
964
|
+
},
|
965
|
+
{
|
966
|
+
"inputs": [
|
967
|
+
{
|
968
|
+
"internalType": "bytes32",
|
969
|
+
"name": "role",
|
970
|
+
"type": "bytes32"
|
971
|
+
}
|
972
|
+
],
|
973
|
+
"name": "getRoleMemberCount",
|
974
|
+
"outputs": [
|
975
|
+
{
|
976
|
+
"internalType": "uint256",
|
977
|
+
"name": "roleMembers",
|
978
|
+
"type": "uint256"
|
979
|
+
}
|
980
|
+
],
|
981
|
+
"stateMutability": "view",
|
982
|
+
"type": "function"
|
983
|
+
},
|
984
|
+
{
|
985
|
+
"inputs": [
|
986
|
+
{
|
987
|
+
"internalType": "NftId",
|
988
|
+
"name": "productNftId",
|
989
|
+
"type": "uint96"
|
990
|
+
}
|
991
|
+
],
|
992
|
+
"name": "getTokenHandler",
|
993
|
+
"outputs": [
|
994
|
+
{
|
995
|
+
"internalType": "contract TokenHandler",
|
996
|
+
"name": "tokenHandler",
|
997
|
+
"type": "address"
|
998
|
+
}
|
999
|
+
],
|
1000
|
+
"stateMutability": "view",
|
1001
|
+
"type": "function"
|
1002
|
+
},
|
1003
|
+
{
|
1004
|
+
"inputs": [],
|
1005
|
+
"name": "getType",
|
1006
|
+
"outputs": [
|
1007
|
+
{
|
1008
|
+
"internalType": "ObjectType",
|
1009
|
+
"name": "objectType",
|
1010
|
+
"type": "uint8"
|
1011
|
+
}
|
1012
|
+
],
|
1013
|
+
"stateMutability": "view",
|
1014
|
+
"type": "function"
|
1015
|
+
},
|
1016
|
+
{
|
1017
|
+
"inputs": [
|
1018
|
+
{
|
1019
|
+
"internalType": "bytes32",
|
1020
|
+
"name": "role",
|
1021
|
+
"type": "bytes32"
|
1022
|
+
},
|
1023
|
+
{
|
1024
|
+
"internalType": "address",
|
1025
|
+
"name": "member",
|
1026
|
+
"type": "address"
|
1027
|
+
}
|
1028
|
+
],
|
1029
|
+
"name": "grantRole",
|
1030
|
+
"outputs": [],
|
1031
|
+
"stateMutability": "nonpayable",
|
1032
|
+
"type": "function"
|
1033
|
+
},
|
1034
|
+
{
|
1035
|
+
"inputs": [
|
1036
|
+
{
|
1037
|
+
"internalType": "bytes32",
|
1038
|
+
"name": "role",
|
1039
|
+
"type": "bytes32"
|
1040
|
+
},
|
1041
|
+
{
|
1042
|
+
"internalType": "address",
|
1043
|
+
"name": "member",
|
1044
|
+
"type": "address"
|
1045
|
+
}
|
1046
|
+
],
|
1047
|
+
"name": "hasRole",
|
1048
|
+
"outputs": [
|
1049
|
+
{
|
1050
|
+
"internalType": "bool",
|
1051
|
+
"name": "",
|
1052
|
+
"type": "bool"
|
1053
|
+
}
|
1054
|
+
],
|
1055
|
+
"stateMutability": "view",
|
1056
|
+
"type": "function"
|
1057
|
+
},
|
1058
|
+
{
|
1059
|
+
"inputs": [],
|
1060
|
+
"name": "isRegisterable",
|
1061
|
+
"outputs": [
|
1062
|
+
{
|
1063
|
+
"internalType": "bool",
|
1064
|
+
"name": "",
|
1065
|
+
"type": "bool"
|
1066
|
+
}
|
1067
|
+
],
|
1068
|
+
"stateMutability": "pure",
|
1069
|
+
"type": "function"
|
1070
|
+
},
|
1071
|
+
{
|
1072
|
+
"inputs": [],
|
1073
|
+
"name": "isRegistered",
|
1074
|
+
"outputs": [
|
1075
|
+
{
|
1076
|
+
"internalType": "bool",
|
1077
|
+
"name": "",
|
1078
|
+
"type": "bool"
|
1079
|
+
}
|
1080
|
+
],
|
1081
|
+
"stateMutability": "view",
|
1082
|
+
"type": "function"
|
1083
|
+
},
|
1084
|
+
{
|
1085
|
+
"inputs": [
|
1086
|
+
{
|
1087
|
+
"internalType": "ObjectType",
|
1088
|
+
"name": "objectType",
|
1089
|
+
"type": "uint8"
|
1090
|
+
},
|
1091
|
+
{
|
1092
|
+
"internalType": "StateId",
|
1093
|
+
"name": "fromId",
|
1094
|
+
"type": "uint8"
|
1095
|
+
},
|
1096
|
+
{
|
1097
|
+
"internalType": "StateId",
|
1098
|
+
"name": "toId",
|
1099
|
+
"type": "uint8"
|
1100
|
+
}
|
1101
|
+
],
|
1102
|
+
"name": "isValidTransition",
|
1103
|
+
"outputs": [
|
1104
|
+
{
|
1105
|
+
"internalType": "bool",
|
1106
|
+
"name": "",
|
1107
|
+
"type": "bool"
|
1108
|
+
}
|
1109
|
+
],
|
1110
|
+
"stateMutability": "view",
|
1111
|
+
"type": "function"
|
1112
|
+
},
|
1113
|
+
{
|
1114
|
+
"inputs": [
|
1115
|
+
{
|
1116
|
+
"internalType": "NftId",
|
1117
|
+
"name": "nftId",
|
1118
|
+
"type": "uint96"
|
1119
|
+
}
|
1120
|
+
],
|
1121
|
+
"name": "processPremium",
|
1122
|
+
"outputs": [],
|
1123
|
+
"stateMutability": "nonpayable",
|
1124
|
+
"type": "function"
|
1125
|
+
},
|
1126
|
+
{
|
1127
|
+
"inputs": [
|
1128
|
+
{
|
1129
|
+
"internalType": "NftId",
|
1130
|
+
"name": "policyNftId",
|
1131
|
+
"type": "uint96"
|
1132
|
+
},
|
1133
|
+
{
|
1134
|
+
"internalType": "NftId",
|
1135
|
+
"name": "productNftId",
|
1136
|
+
"type": "uint96"
|
1137
|
+
}
|
1138
|
+
],
|
1139
|
+
"name": "processPremium",
|
1140
|
+
"outputs": [],
|
1141
|
+
"stateMutability": "nonpayable",
|
1142
|
+
"type": "function"
|
1143
|
+
},
|
1144
|
+
{
|
1145
|
+
"inputs": [],
|
1146
|
+
"name": "register",
|
1147
|
+
"outputs": [
|
1148
|
+
{
|
1149
|
+
"internalType": "NftId",
|
1150
|
+
"name": "nftId",
|
1151
|
+
"type": "uint96"
|
1152
|
+
}
|
1153
|
+
],
|
1154
|
+
"stateMutability": "nonpayable",
|
1155
|
+
"type": "function"
|
1156
|
+
},
|
1157
|
+
{
|
1158
|
+
"inputs": [
|
1159
|
+
{
|
1160
|
+
"internalType": "contract IComponentContract",
|
1161
|
+
"name": "component",
|
1162
|
+
"type": "address"
|
1163
|
+
}
|
1164
|
+
],
|
1165
|
+
"name": "registerComponent",
|
1166
|
+
"outputs": [
|
1167
|
+
{
|
1168
|
+
"internalType": "NftId",
|
1169
|
+
"name": "nftId",
|
1170
|
+
"type": "uint96"
|
1171
|
+
}
|
1172
|
+
],
|
1173
|
+
"stateMutability": "nonpayable",
|
1174
|
+
"type": "function"
|
1175
|
+
},
|
1176
|
+
{
|
1177
|
+
"inputs": [
|
1178
|
+
{
|
1179
|
+
"internalType": "NftId",
|
1180
|
+
"name": "nftId",
|
1181
|
+
"type": "uint96"
|
1182
|
+
}
|
1183
|
+
],
|
1184
|
+
"name": "registerPool",
|
1185
|
+
"outputs": [],
|
1186
|
+
"stateMutability": "nonpayable",
|
1187
|
+
"type": "function"
|
1188
|
+
},
|
1189
|
+
{
|
1190
|
+
"inputs": [
|
1191
|
+
{
|
1192
|
+
"internalType": "NftId",
|
1193
|
+
"name": "poolNftId",
|
1194
|
+
"type": "uint96"
|
1195
|
+
},
|
1196
|
+
{
|
1197
|
+
"internalType": "address",
|
1198
|
+
"name": "wallet",
|
1199
|
+
"type": "address"
|
1200
|
+
},
|
1201
|
+
{
|
1202
|
+
"components": [
|
1203
|
+
{
|
1204
|
+
"internalType": "UFixed",
|
1205
|
+
"name": "fractionalFee",
|
1206
|
+
"type": "uint256"
|
1207
|
+
},
|
1208
|
+
{
|
1209
|
+
"internalType": "uint256",
|
1210
|
+
"name": "fixedFee",
|
1211
|
+
"type": "uint256"
|
1212
|
+
}
|
1213
|
+
],
|
1214
|
+
"internalType": "struct Fee",
|
1215
|
+
"name": "stakingFee",
|
1216
|
+
"type": "tuple"
|
1217
|
+
},
|
1218
|
+
{
|
1219
|
+
"components": [
|
1220
|
+
{
|
1221
|
+
"internalType": "UFixed",
|
1222
|
+
"name": "fractionalFee",
|
1223
|
+
"type": "uint256"
|
1224
|
+
},
|
1225
|
+
{
|
1226
|
+
"internalType": "uint256",
|
1227
|
+
"name": "fixedFee",
|
1228
|
+
"type": "uint256"
|
1229
|
+
}
|
1230
|
+
],
|
1231
|
+
"internalType": "struct Fee",
|
1232
|
+
"name": "performanceFee",
|
1233
|
+
"type": "tuple"
|
1234
|
+
}
|
1235
|
+
],
|
1236
|
+
"name": "registerPool",
|
1237
|
+
"outputs": [],
|
1238
|
+
"stateMutability": "nonpayable",
|
1239
|
+
"type": "function"
|
1240
|
+
},
|
1241
|
+
{
|
1242
|
+
"inputs": [
|
1243
|
+
{
|
1244
|
+
"internalType": "NftId",
|
1245
|
+
"name": "productNftId",
|
1246
|
+
"type": "uint96"
|
1247
|
+
},
|
1248
|
+
{
|
1249
|
+
"internalType": "NftId",
|
1250
|
+
"name": "distributorNftId",
|
1251
|
+
"type": "uint96"
|
1252
|
+
},
|
1253
|
+
{
|
1254
|
+
"internalType": "NftId",
|
1255
|
+
"name": "poolNftId",
|
1256
|
+
"type": "uint96"
|
1257
|
+
},
|
1258
|
+
{
|
1259
|
+
"internalType": "contract IERC20",
|
1260
|
+
"name": "token",
|
1261
|
+
"type": "address"
|
1262
|
+
},
|
1263
|
+
{
|
1264
|
+
"internalType": "address",
|
1265
|
+
"name": "wallet",
|
1266
|
+
"type": "address"
|
1267
|
+
},
|
1268
|
+
{
|
1269
|
+
"components": [
|
1270
|
+
{
|
1271
|
+
"internalType": "UFixed",
|
1272
|
+
"name": "fractionalFee",
|
1273
|
+
"type": "uint256"
|
1274
|
+
},
|
1275
|
+
{
|
1276
|
+
"internalType": "uint256",
|
1277
|
+
"name": "fixedFee",
|
1278
|
+
"type": "uint256"
|
1279
|
+
}
|
1280
|
+
],
|
1281
|
+
"internalType": "struct Fee",
|
1282
|
+
"name": "policyFee",
|
1283
|
+
"type": "tuple"
|
1284
|
+
},
|
1285
|
+
{
|
1286
|
+
"components": [
|
1287
|
+
{
|
1288
|
+
"internalType": "UFixed",
|
1289
|
+
"name": "fractionalFee",
|
1290
|
+
"type": "uint256"
|
1291
|
+
},
|
1292
|
+
{
|
1293
|
+
"internalType": "uint256",
|
1294
|
+
"name": "fixedFee",
|
1295
|
+
"type": "uint256"
|
1296
|
+
}
|
1297
|
+
],
|
1298
|
+
"internalType": "struct Fee",
|
1299
|
+
"name": "processingFee",
|
1300
|
+
"type": "tuple"
|
1301
|
+
}
|
1302
|
+
],
|
1303
|
+
"name": "registerProduct",
|
1304
|
+
"outputs": [],
|
1305
|
+
"stateMutability": "nonpayable",
|
1306
|
+
"type": "function"
|
1307
|
+
},
|
1308
|
+
{
|
1309
|
+
"inputs": [
|
1310
|
+
{
|
1311
|
+
"internalType": "bytes32",
|
1312
|
+
"name": "role",
|
1313
|
+
"type": "bytes32"
|
1314
|
+
},
|
1315
|
+
{
|
1316
|
+
"internalType": "address",
|
1317
|
+
"name": "member",
|
1318
|
+
"type": "address"
|
1319
|
+
}
|
1320
|
+
],
|
1321
|
+
"name": "revokeRole",
|
1322
|
+
"outputs": [],
|
1323
|
+
"stateMutability": "nonpayable",
|
1324
|
+
"type": "function"
|
1325
|
+
},
|
1326
|
+
{
|
1327
|
+
"inputs": [
|
1328
|
+
{
|
1329
|
+
"components": [
|
1330
|
+
{
|
1331
|
+
"internalType": "NftId",
|
1332
|
+
"name": "nftId",
|
1333
|
+
"type": "uint96"
|
1334
|
+
},
|
1335
|
+
{
|
1336
|
+
"internalType": "StateId",
|
1337
|
+
"name": "state",
|
1338
|
+
"type": "uint8"
|
1339
|
+
},
|
1340
|
+
{
|
1341
|
+
"internalType": "contract IERC20Metadata",
|
1342
|
+
"name": "token",
|
1343
|
+
"type": "address"
|
1344
|
+
}
|
1345
|
+
],
|
1346
|
+
"internalType": "struct IComponent.ComponentInfo",
|
1347
|
+
"name": "info",
|
1348
|
+
"type": "tuple"
|
1349
|
+
}
|
1350
|
+
],
|
1351
|
+
"name": "setComponentInfo",
|
1352
|
+
"outputs": [
|
1353
|
+
{
|
1354
|
+
"internalType": "NftId",
|
1355
|
+
"name": "componentNftId",
|
1356
|
+
"type": "uint96"
|
1357
|
+
}
|
1358
|
+
],
|
1359
|
+
"stateMutability": "nonpayable",
|
1360
|
+
"type": "function"
|
1361
|
+
},
|
1362
|
+
{
|
1363
|
+
"inputs": [
|
1364
|
+
{
|
1365
|
+
"internalType": "NftId",
|
1366
|
+
"name": "poolNftId",
|
1367
|
+
"type": "uint96"
|
1368
|
+
},
|
1369
|
+
{
|
1370
|
+
"components": [
|
1371
|
+
{
|
1372
|
+
"internalType": "UFixed",
|
1373
|
+
"name": "fractionalFee",
|
1374
|
+
"type": "uint256"
|
1375
|
+
},
|
1376
|
+
{
|
1377
|
+
"internalType": "uint256",
|
1378
|
+
"name": "fixedFee",
|
1379
|
+
"type": "uint256"
|
1380
|
+
}
|
1381
|
+
],
|
1382
|
+
"internalType": "struct Fee",
|
1383
|
+
"name": "stakingFee",
|
1384
|
+
"type": "tuple"
|
1385
|
+
},
|
1386
|
+
{
|
1387
|
+
"components": [
|
1388
|
+
{
|
1389
|
+
"internalType": "UFixed",
|
1390
|
+
"name": "fractionalFee",
|
1391
|
+
"type": "uint256"
|
1392
|
+
},
|
1393
|
+
{
|
1394
|
+
"internalType": "uint256",
|
1395
|
+
"name": "fixedFee",
|
1396
|
+
"type": "uint256"
|
1397
|
+
}
|
1398
|
+
],
|
1399
|
+
"internalType": "struct Fee",
|
1400
|
+
"name": "performanceFee",
|
1401
|
+
"type": "tuple"
|
1402
|
+
}
|
1403
|
+
],
|
1404
|
+
"name": "setPoolFees",
|
1405
|
+
"outputs": [],
|
1406
|
+
"stateMutability": "nonpayable",
|
1407
|
+
"type": "function"
|
1408
|
+
},
|
1409
|
+
{
|
1410
|
+
"inputs": [
|
1411
|
+
{
|
1412
|
+
"internalType": "NftId",
|
1413
|
+
"name": "productNftId",
|
1414
|
+
"type": "uint96"
|
1415
|
+
},
|
1416
|
+
{
|
1417
|
+
"components": [
|
1418
|
+
{
|
1419
|
+
"internalType": "UFixed",
|
1420
|
+
"name": "fractionalFee",
|
1421
|
+
"type": "uint256"
|
1422
|
+
},
|
1423
|
+
{
|
1424
|
+
"internalType": "uint256",
|
1425
|
+
"name": "fixedFee",
|
1426
|
+
"type": "uint256"
|
1427
|
+
}
|
1428
|
+
],
|
1429
|
+
"internalType": "struct Fee",
|
1430
|
+
"name": "policyFee",
|
1431
|
+
"type": "tuple"
|
1432
|
+
},
|
1433
|
+
{
|
1434
|
+
"components": [
|
1435
|
+
{
|
1436
|
+
"internalType": "UFixed",
|
1437
|
+
"name": "fractionalFee",
|
1438
|
+
"type": "uint256"
|
1439
|
+
},
|
1440
|
+
{
|
1441
|
+
"internalType": "uint256",
|
1442
|
+
"name": "fixedFee",
|
1443
|
+
"type": "uint256"
|
1444
|
+
}
|
1445
|
+
],
|
1446
|
+
"internalType": "struct Fee",
|
1447
|
+
"name": "processingFee",
|
1448
|
+
"type": "tuple"
|
1449
|
+
}
|
1450
|
+
],
|
1451
|
+
"name": "setProductFees",
|
1452
|
+
"outputs": [],
|
1453
|
+
"stateMutability": "nonpayable",
|
1454
|
+
"type": "function"
|
1455
|
+
},
|
1456
|
+
{
|
1457
|
+
"inputs": [
|
1458
|
+
{
|
1459
|
+
"internalType": "NftId",
|
1460
|
+
"name": "policyNftId",
|
1461
|
+
"type": "uint96"
|
1462
|
+
},
|
1463
|
+
{
|
1464
|
+
"internalType": "NftId",
|
1465
|
+
"name": "productNftId",
|
1466
|
+
"type": "uint96"
|
1467
|
+
}
|
1468
|
+
],
|
1469
|
+
"name": "underwrite",
|
1470
|
+
"outputs": [],
|
1471
|
+
"stateMutability": "nonpayable",
|
1472
|
+
"type": "function"
|
1473
|
+
}
|
1474
|
+
],
|
1475
|
+
"bytecode": "0x",
|
1476
|
+
"deployedBytecode": "0x",
|
1477
|
+
"linkReferences": {},
|
1478
|
+
"deployedLinkReferences": {}
|
1479
|
+
}
|