@etherisc/gif-next 0.0.2-ed4dd55 → 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 +49 -0
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +35 -9
- package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/InstanceLinked.json +2 -2
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +84 -8
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +34 -152
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +146 -13
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +148 -15
- 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 +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
- 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 +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 +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +714 -127
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +845 -129
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +1 -1
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +1 -1
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +31 -59
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +103 -6
- package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +1 -1
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +34 -8
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +31 -59
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +50 -3
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +1 -1
- 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 +1 -1
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +44 -21
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +44 -21
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +1 -1
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +23 -43
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +28 -35
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +1 -1
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +21 -8
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +1 -1
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +85 -14
- 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 +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +8 -8
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +20 -111
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registerable.json +9 -9
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +66 -115
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +2 -2
- 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 +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +85 -3
- 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 +39 -24
- package/contracts/components/IPool.sol +9 -3
- package/contracts/components/IProduct.sol +11 -6
- package/contracts/components/Pool.sol +37 -14
- package/contracts/components/Product.sol +48 -24
- package/contracts/experiment/errors/Require.sol +38 -0
- package/contracts/experiment/errors/Revert.sol +44 -0
- package/contracts/experiment/inheritance/A.sol +8 -11
- package/contracts/experiment/inheritance/B.sol +10 -5
- package/contracts/experiment/inheritance/C.sol +11 -5
- package/contracts/experiment/inheritance/IA.sol +2 -7
- package/contracts/experiment/inheritance/IB.sol +3 -2
- package/contracts/experiment/inheritance/IC.sol +4 -3
- 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 +14 -9
- package/contracts/experiment/types/TypeB.sol +14 -9
- package/contracts/instance/IInstance.sol +8 -3
- package/contracts/instance/Instance.sol +24 -15
- package/contracts/instance/access/Access.sol +63 -116
- package/contracts/instance/access/IAccess.sol +28 -48
- package/contracts/instance/component/ComponentModule.sol +162 -147
- package/contracts/instance/component/IComponent.sol +41 -61
- package/contracts/instance/lifecycle/ILifecycle.sol +47 -0
- package/contracts/instance/lifecycle/LifecycleModule.sol +88 -0
- package/contracts/instance/policy/IPolicy.sol +19 -35
- package/contracts/instance/policy/PolicyModule.sol +52 -44
- package/contracts/instance/pool/IPoolModule.sol +9 -26
- package/contracts/instance/pool/PoolModule.sol +43 -45
- package/contracts/instance/product/IProductService.sol +10 -19
- package/contracts/instance/product/ProductService.sol +86 -55
- 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/Dip.sol +26 -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 +23 -61
- package/contracts/registry/IChainNft.sol +10 -7
- package/contracts/registry/IRegistry.sol +40 -41
- package/contracts/registry/Registry.sol +73 -67
- package/contracts/types/Blocknumber.sol +118 -0
- package/contracts/types/ChainId.sol +24 -10
- package/contracts/types/Fee.sol +32 -0
- package/contracts/types/NftId.sol +36 -10
- 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 +14 -5
@@ -0,0 +1,490 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "TreasuryModule",
|
4
|
+
"sourceName": "contracts/instance/treasury/TreasuryModule.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"anonymous": false,
|
8
|
+
"inputs": [
|
9
|
+
{
|
10
|
+
"indexed": false,
|
11
|
+
"internalType": "uint256",
|
12
|
+
"name": "idx",
|
13
|
+
"type": "uint256"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"indexed": false,
|
17
|
+
"internalType": "address",
|
18
|
+
"name": "module",
|
19
|
+
"type": "address"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"indexed": false,
|
23
|
+
"internalType": "string",
|
24
|
+
"name": "comment",
|
25
|
+
"type": "string"
|
26
|
+
}
|
27
|
+
],
|
28
|
+
"name": "LogDebug",
|
29
|
+
"type": "event"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"inputs": [
|
33
|
+
{
|
34
|
+
"internalType": "uint256",
|
35
|
+
"name": "amount",
|
36
|
+
"type": "uint256"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"components": [
|
40
|
+
{
|
41
|
+
"internalType": "UFixed",
|
42
|
+
"name": "fractionalFee",
|
43
|
+
"type": "uint256"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"internalType": "uint256",
|
47
|
+
"name": "fixedFee",
|
48
|
+
"type": "uint256"
|
49
|
+
}
|
50
|
+
],
|
51
|
+
"internalType": "struct Fee",
|
52
|
+
"name": "fee",
|
53
|
+
"type": "tuple"
|
54
|
+
}
|
55
|
+
],
|
56
|
+
"name": "calculateFeeAmount",
|
57
|
+
"outputs": [
|
58
|
+
{
|
59
|
+
"internalType": "uint256",
|
60
|
+
"name": "feeAmount",
|
61
|
+
"type": "uint256"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"internalType": "uint256",
|
65
|
+
"name": "netAmount",
|
66
|
+
"type": "uint256"
|
67
|
+
}
|
68
|
+
],
|
69
|
+
"stateMutability": "pure",
|
70
|
+
"type": "function"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"inputs": [
|
74
|
+
{
|
75
|
+
"internalType": "NftId",
|
76
|
+
"name": "poolNftId",
|
77
|
+
"type": "uint96"
|
78
|
+
}
|
79
|
+
],
|
80
|
+
"name": "getPoolSetup",
|
81
|
+
"outputs": [
|
82
|
+
{
|
83
|
+
"components": [
|
84
|
+
{
|
85
|
+
"internalType": "NftId",
|
86
|
+
"name": "poolNftId",
|
87
|
+
"type": "uint96"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"internalType": "address",
|
91
|
+
"name": "wallet",
|
92
|
+
"type": "address"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"components": [
|
96
|
+
{
|
97
|
+
"internalType": "UFixed",
|
98
|
+
"name": "fractionalFee",
|
99
|
+
"type": "uint256"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"internalType": "uint256",
|
103
|
+
"name": "fixedFee",
|
104
|
+
"type": "uint256"
|
105
|
+
}
|
106
|
+
],
|
107
|
+
"internalType": "struct Fee",
|
108
|
+
"name": "stakingFee",
|
109
|
+
"type": "tuple"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"components": [
|
113
|
+
{
|
114
|
+
"internalType": "UFixed",
|
115
|
+
"name": "fractionalFee",
|
116
|
+
"type": "uint256"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"internalType": "uint256",
|
120
|
+
"name": "fixedFee",
|
121
|
+
"type": "uint256"
|
122
|
+
}
|
123
|
+
],
|
124
|
+
"internalType": "struct Fee",
|
125
|
+
"name": "performanceFee",
|
126
|
+
"type": "tuple"
|
127
|
+
}
|
128
|
+
],
|
129
|
+
"internalType": "struct ITreasuryModule.PoolSetup",
|
130
|
+
"name": "setup",
|
131
|
+
"type": "tuple"
|
132
|
+
}
|
133
|
+
],
|
134
|
+
"stateMutability": "view",
|
135
|
+
"type": "function"
|
136
|
+
},
|
137
|
+
{
|
138
|
+
"inputs": [
|
139
|
+
{
|
140
|
+
"internalType": "NftId",
|
141
|
+
"name": "productNftId",
|
142
|
+
"type": "uint96"
|
143
|
+
}
|
144
|
+
],
|
145
|
+
"name": "getProductSetup",
|
146
|
+
"outputs": [
|
147
|
+
{
|
148
|
+
"components": [
|
149
|
+
{
|
150
|
+
"internalType": "NftId",
|
151
|
+
"name": "productNftId",
|
152
|
+
"type": "uint96"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"internalType": "NftId",
|
156
|
+
"name": "distributorNftId",
|
157
|
+
"type": "uint96"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"internalType": "NftId",
|
161
|
+
"name": "poolNftId",
|
162
|
+
"type": "uint96"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"internalType": "contract IERC20",
|
166
|
+
"name": "token",
|
167
|
+
"type": "address"
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"internalType": "contract TokenHandler",
|
171
|
+
"name": "tokenHandler",
|
172
|
+
"type": "address"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"internalType": "address",
|
176
|
+
"name": "wallet",
|
177
|
+
"type": "address"
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"components": [
|
181
|
+
{
|
182
|
+
"internalType": "UFixed",
|
183
|
+
"name": "fractionalFee",
|
184
|
+
"type": "uint256"
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"internalType": "uint256",
|
188
|
+
"name": "fixedFee",
|
189
|
+
"type": "uint256"
|
190
|
+
}
|
191
|
+
],
|
192
|
+
"internalType": "struct Fee",
|
193
|
+
"name": "policyFee",
|
194
|
+
"type": "tuple"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"components": [
|
198
|
+
{
|
199
|
+
"internalType": "UFixed",
|
200
|
+
"name": "fractionalFee",
|
201
|
+
"type": "uint256"
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"internalType": "uint256",
|
205
|
+
"name": "fixedFee",
|
206
|
+
"type": "uint256"
|
207
|
+
}
|
208
|
+
],
|
209
|
+
"internalType": "struct Fee",
|
210
|
+
"name": "processingFee",
|
211
|
+
"type": "tuple"
|
212
|
+
}
|
213
|
+
],
|
214
|
+
"internalType": "struct ITreasuryModule.ProductSetup",
|
215
|
+
"name": "setup",
|
216
|
+
"type": "tuple"
|
217
|
+
}
|
218
|
+
],
|
219
|
+
"stateMutability": "view",
|
220
|
+
"type": "function"
|
221
|
+
},
|
222
|
+
{
|
223
|
+
"inputs": [],
|
224
|
+
"name": "getRegistry",
|
225
|
+
"outputs": [
|
226
|
+
{
|
227
|
+
"internalType": "contract IRegistry",
|
228
|
+
"name": "registry",
|
229
|
+
"type": "address"
|
230
|
+
}
|
231
|
+
],
|
232
|
+
"stateMutability": "view",
|
233
|
+
"type": "function"
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"inputs": [
|
237
|
+
{
|
238
|
+
"internalType": "NftId",
|
239
|
+
"name": "productNftId",
|
240
|
+
"type": "uint96"
|
241
|
+
}
|
242
|
+
],
|
243
|
+
"name": "getTokenHandler",
|
244
|
+
"outputs": [
|
245
|
+
{
|
246
|
+
"internalType": "contract TokenHandler",
|
247
|
+
"name": "tokenHandler",
|
248
|
+
"type": "address"
|
249
|
+
}
|
250
|
+
],
|
251
|
+
"stateMutability": "view",
|
252
|
+
"type": "function"
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"inputs": [
|
256
|
+
{
|
257
|
+
"internalType": "NftId",
|
258
|
+
"name": "policyNftId",
|
259
|
+
"type": "uint96"
|
260
|
+
},
|
261
|
+
{
|
262
|
+
"internalType": "NftId",
|
263
|
+
"name": "productNftId",
|
264
|
+
"type": "uint96"
|
265
|
+
}
|
266
|
+
],
|
267
|
+
"name": "processPremium",
|
268
|
+
"outputs": [],
|
269
|
+
"stateMutability": "nonpayable",
|
270
|
+
"type": "function"
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"inputs": [
|
274
|
+
{
|
275
|
+
"internalType": "NftId",
|
276
|
+
"name": "poolNftId",
|
277
|
+
"type": "uint96"
|
278
|
+
},
|
279
|
+
{
|
280
|
+
"internalType": "address",
|
281
|
+
"name": "wallet",
|
282
|
+
"type": "address"
|
283
|
+
},
|
284
|
+
{
|
285
|
+
"components": [
|
286
|
+
{
|
287
|
+
"internalType": "UFixed",
|
288
|
+
"name": "fractionalFee",
|
289
|
+
"type": "uint256"
|
290
|
+
},
|
291
|
+
{
|
292
|
+
"internalType": "uint256",
|
293
|
+
"name": "fixedFee",
|
294
|
+
"type": "uint256"
|
295
|
+
}
|
296
|
+
],
|
297
|
+
"internalType": "struct Fee",
|
298
|
+
"name": "stakingFee",
|
299
|
+
"type": "tuple"
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"components": [
|
303
|
+
{
|
304
|
+
"internalType": "UFixed",
|
305
|
+
"name": "fractionalFee",
|
306
|
+
"type": "uint256"
|
307
|
+
},
|
308
|
+
{
|
309
|
+
"internalType": "uint256",
|
310
|
+
"name": "fixedFee",
|
311
|
+
"type": "uint256"
|
312
|
+
}
|
313
|
+
],
|
314
|
+
"internalType": "struct Fee",
|
315
|
+
"name": "performanceFee",
|
316
|
+
"type": "tuple"
|
317
|
+
}
|
318
|
+
],
|
319
|
+
"name": "registerPool",
|
320
|
+
"outputs": [],
|
321
|
+
"stateMutability": "nonpayable",
|
322
|
+
"type": "function"
|
323
|
+
},
|
324
|
+
{
|
325
|
+
"inputs": [
|
326
|
+
{
|
327
|
+
"internalType": "NftId",
|
328
|
+
"name": "productNftId",
|
329
|
+
"type": "uint96"
|
330
|
+
},
|
331
|
+
{
|
332
|
+
"internalType": "NftId",
|
333
|
+
"name": "distributorNftId",
|
334
|
+
"type": "uint96"
|
335
|
+
},
|
336
|
+
{
|
337
|
+
"internalType": "NftId",
|
338
|
+
"name": "poolNftId",
|
339
|
+
"type": "uint96"
|
340
|
+
},
|
341
|
+
{
|
342
|
+
"internalType": "contract IERC20",
|
343
|
+
"name": "token",
|
344
|
+
"type": "address"
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"internalType": "address",
|
348
|
+
"name": "wallet",
|
349
|
+
"type": "address"
|
350
|
+
},
|
351
|
+
{
|
352
|
+
"components": [
|
353
|
+
{
|
354
|
+
"internalType": "UFixed",
|
355
|
+
"name": "fractionalFee",
|
356
|
+
"type": "uint256"
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"internalType": "uint256",
|
360
|
+
"name": "fixedFee",
|
361
|
+
"type": "uint256"
|
362
|
+
}
|
363
|
+
],
|
364
|
+
"internalType": "struct Fee",
|
365
|
+
"name": "policyFee",
|
366
|
+
"type": "tuple"
|
367
|
+
},
|
368
|
+
{
|
369
|
+
"components": [
|
370
|
+
{
|
371
|
+
"internalType": "UFixed",
|
372
|
+
"name": "fractionalFee",
|
373
|
+
"type": "uint256"
|
374
|
+
},
|
375
|
+
{
|
376
|
+
"internalType": "uint256",
|
377
|
+
"name": "fixedFee",
|
378
|
+
"type": "uint256"
|
379
|
+
}
|
380
|
+
],
|
381
|
+
"internalType": "struct Fee",
|
382
|
+
"name": "processingFee",
|
383
|
+
"type": "tuple"
|
384
|
+
}
|
385
|
+
],
|
386
|
+
"name": "registerProduct",
|
387
|
+
"outputs": [],
|
388
|
+
"stateMutability": "nonpayable",
|
389
|
+
"type": "function"
|
390
|
+
},
|
391
|
+
{
|
392
|
+
"inputs": [
|
393
|
+
{
|
394
|
+
"internalType": "NftId",
|
395
|
+
"name": "poolNftId",
|
396
|
+
"type": "uint96"
|
397
|
+
},
|
398
|
+
{
|
399
|
+
"components": [
|
400
|
+
{
|
401
|
+
"internalType": "UFixed",
|
402
|
+
"name": "fractionalFee",
|
403
|
+
"type": "uint256"
|
404
|
+
},
|
405
|
+
{
|
406
|
+
"internalType": "uint256",
|
407
|
+
"name": "fixedFee",
|
408
|
+
"type": "uint256"
|
409
|
+
}
|
410
|
+
],
|
411
|
+
"internalType": "struct Fee",
|
412
|
+
"name": "stakingFee",
|
413
|
+
"type": "tuple"
|
414
|
+
},
|
415
|
+
{
|
416
|
+
"components": [
|
417
|
+
{
|
418
|
+
"internalType": "UFixed",
|
419
|
+
"name": "fractionalFee",
|
420
|
+
"type": "uint256"
|
421
|
+
},
|
422
|
+
{
|
423
|
+
"internalType": "uint256",
|
424
|
+
"name": "fixedFee",
|
425
|
+
"type": "uint256"
|
426
|
+
}
|
427
|
+
],
|
428
|
+
"internalType": "struct Fee",
|
429
|
+
"name": "performanceFee",
|
430
|
+
"type": "tuple"
|
431
|
+
}
|
432
|
+
],
|
433
|
+
"name": "setPoolFees",
|
434
|
+
"outputs": [],
|
435
|
+
"stateMutability": "nonpayable",
|
436
|
+
"type": "function"
|
437
|
+
},
|
438
|
+
{
|
439
|
+
"inputs": [
|
440
|
+
{
|
441
|
+
"internalType": "NftId",
|
442
|
+
"name": "productNftId",
|
443
|
+
"type": "uint96"
|
444
|
+
},
|
445
|
+
{
|
446
|
+
"components": [
|
447
|
+
{
|
448
|
+
"internalType": "UFixed",
|
449
|
+
"name": "fractionalFee",
|
450
|
+
"type": "uint256"
|
451
|
+
},
|
452
|
+
{
|
453
|
+
"internalType": "uint256",
|
454
|
+
"name": "fixedFee",
|
455
|
+
"type": "uint256"
|
456
|
+
}
|
457
|
+
],
|
458
|
+
"internalType": "struct Fee",
|
459
|
+
"name": "policyFee",
|
460
|
+
"type": "tuple"
|
461
|
+
},
|
462
|
+
{
|
463
|
+
"components": [
|
464
|
+
{
|
465
|
+
"internalType": "UFixed",
|
466
|
+
"name": "fractionalFee",
|
467
|
+
"type": "uint256"
|
468
|
+
},
|
469
|
+
{
|
470
|
+
"internalType": "uint256",
|
471
|
+
"name": "fixedFee",
|
472
|
+
"type": "uint256"
|
473
|
+
}
|
474
|
+
],
|
475
|
+
"internalType": "struct Fee",
|
476
|
+
"name": "processingFee",
|
477
|
+
"type": "tuple"
|
478
|
+
}
|
479
|
+
],
|
480
|
+
"name": "setProductFees",
|
481
|
+
"outputs": [],
|
482
|
+
"stateMutability": "nonpayable",
|
483
|
+
"type": "function"
|
484
|
+
}
|
485
|
+
],
|
486
|
+
"bytecode": "0x",
|
487
|
+
"deployedBytecode": "0x",
|
488
|
+
"linkReferences": {},
|
489
|
+
"deployedLinkReferences": {}
|
490
|
+
}
|