@etherisc/gif-next 0.0.2-e5ea33d → 0.0.2-e6ad61d-739
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +10 -1
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +28 -2
- 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 +78 -2
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +32 -150
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +121 -6
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +121 -6
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +2 -2
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
- 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 +686 -99
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +757 -99
- 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 +14 -42
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +65 -10
- 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 +28 -2
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +12 -40
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +47 -0
- 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 +26 -3
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +26 -3
- 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 +15 -35
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +22 -29
- 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 +13 -0
- 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 +41 -12
- 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/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 +2 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +4 -95
- 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 +2 -2
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +14 -105
- 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 +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
- 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 +2 -2
- 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 +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +2 -2
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +37 -11
- package/contracts/components/Component.sol +24 -7
- package/contracts/components/IPool.sol +6 -0
- package/contracts/components/IProduct.sol +9 -2
- package/contracts/components/Pool.sol +34 -4
- package/contracts/components/Product.sol +38 -4
- 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/instance/IInstance.sol +9 -2
- package/contracts/instance/Instance.sol +13 -5
- package/contracts/instance/component/ComponentModule.sol +99 -38
- package/contracts/instance/component/IComponent.sol +18 -17
- package/contracts/instance/lifecycle/ILifecycle.sol +47 -0
- package/contracts/instance/lifecycle/LifecycleModule.sol +88 -0
- package/contracts/instance/policy/IPolicy.sol +8 -9
- package/contracts/instance/policy/PolicyModule.sol +32 -9
- package/contracts/instance/pool/IPoolModule.sol +2 -8
- package/contracts/instance/pool/PoolModule.sol +24 -16
- package/contracts/instance/product/IProductService.sol +1 -1
- package/contracts/instance/product/ProductService.sol +54 -30
- 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/registry/IRegistry.sol +4 -17
- package/contracts/registry/Registry.sol +4 -31
- package/contracts/types/Fee.sol +32 -0
- package/contracts/types/ObjectType.sol +107 -0
- package/contracts/types/StateId.sol +91 -0
- package/contracts/types/UFixed.sol +19 -14
- package/package.json +7 -4
@@ -3,6 +3,104 @@
|
|
3
3
|
"contractName": "IInstance",
|
4
4
|
"sourceName": "contracts/instance/IInstance.sol",
|
5
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
|
+
},
|
6
104
|
{
|
7
105
|
"anonymous": false,
|
8
106
|
"inputs": [
|
@@ -28,6 +126,31 @@
|
|
28
126
|
"name": "LogDebug",
|
29
127
|
"type": "event"
|
30
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
|
+
},
|
31
154
|
{
|
32
155
|
"inputs": [],
|
33
156
|
"name": "ORACLE_OWNER_ROLE",
|
@@ -80,6 +203,47 @@
|
|
80
203
|
"stateMutability": "nonpayable",
|
81
204
|
"type": "function"
|
82
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
|
+
},
|
83
247
|
{
|
84
248
|
"inputs": [],
|
85
249
|
"name": "components",
|
@@ -108,9 +272,9 @@
|
|
108
272
|
"type": "uint96"
|
109
273
|
},
|
110
274
|
{
|
111
|
-
"internalType": "
|
275
|
+
"internalType": "ObjectType",
|
112
276
|
"name": "objectType",
|
113
|
-
"type": "
|
277
|
+
"type": "uint8"
|
114
278
|
},
|
115
279
|
{
|
116
280
|
"internalType": "address",
|
@@ -164,29 +328,6 @@
|
|
164
328
|
"stateMutability": "nonpayable",
|
165
329
|
"type": "function"
|
166
330
|
},
|
167
|
-
{
|
168
|
-
"inputs": [
|
169
|
-
{
|
170
|
-
"internalType": "NftId",
|
171
|
-
"name": "nftId",
|
172
|
-
"type": "uint96"
|
173
|
-
},
|
174
|
-
{
|
175
|
-
"internalType": "address",
|
176
|
-
"name": "wallet",
|
177
|
-
"type": "address"
|
178
|
-
},
|
179
|
-
{
|
180
|
-
"internalType": "address",
|
181
|
-
"name": "token",
|
182
|
-
"type": "address"
|
183
|
-
}
|
184
|
-
],
|
185
|
-
"name": "createPoolInfo",
|
186
|
-
"outputs": [],
|
187
|
-
"stateMutability": "nonpayable",
|
188
|
-
"type": "function"
|
189
|
-
},
|
190
331
|
{
|
191
332
|
"inputs": [
|
192
333
|
{
|
@@ -307,9 +448,14 @@
|
|
307
448
|
"type": "uint96"
|
308
449
|
},
|
309
450
|
{
|
310
|
-
"internalType": "
|
451
|
+
"internalType": "StateId",
|
311
452
|
"name": "state",
|
312
453
|
"type": "uint8"
|
454
|
+
},
|
455
|
+
{
|
456
|
+
"internalType": "contract IERC20Metadata",
|
457
|
+
"name": "token",
|
458
|
+
"type": "address"
|
313
459
|
}
|
314
460
|
],
|
315
461
|
"internalType": "struct IComponent.ComponentInfo",
|
@@ -320,25 +466,6 @@
|
|
320
466
|
"stateMutability": "view",
|
321
467
|
"type": "function"
|
322
468
|
},
|
323
|
-
{
|
324
|
-
"inputs": [
|
325
|
-
{
|
326
|
-
"internalType": "NftId",
|
327
|
-
"name": "nftId",
|
328
|
-
"type": "uint96"
|
329
|
-
}
|
330
|
-
],
|
331
|
-
"name": "getComponentOwner",
|
332
|
-
"outputs": [
|
333
|
-
{
|
334
|
-
"internalType": "address",
|
335
|
-
"name": "owner",
|
336
|
-
"type": "address"
|
337
|
-
}
|
338
|
-
],
|
339
|
-
"stateMutability": "view",
|
340
|
-
"type": "function"
|
341
|
-
},
|
342
469
|
{
|
343
470
|
"inputs": [],
|
344
471
|
"name": "getComponentOwnerService",
|
@@ -378,6 +505,25 @@
|
|
378
505
|
"stateMutability": "view",
|
379
506
|
"type": "function"
|
380
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
|
+
},
|
381
527
|
{
|
382
528
|
"inputs": [],
|
383
529
|
"name": "getNftId",
|
@@ -435,7 +581,7 @@
|
|
435
581
|
"type": "uint96"
|
436
582
|
},
|
437
583
|
{
|
438
|
-
"internalType": "
|
584
|
+
"internalType": "StateId",
|
439
585
|
"name": "state",
|
440
586
|
"type": "uint8"
|
441
587
|
},
|
@@ -449,6 +595,11 @@
|
|
449
595
|
"name": "premiumAmount",
|
450
596
|
"type": "uint256"
|
451
597
|
},
|
598
|
+
{
|
599
|
+
"internalType": "uint256",
|
600
|
+
"name": "premiumPaidAmount",
|
601
|
+
"type": "uint256"
|
602
|
+
},
|
452
603
|
{
|
453
604
|
"internalType": "uint256",
|
454
605
|
"name": "lifetime",
|
@@ -459,6 +610,11 @@
|
|
459
610
|
"name": "createdAt",
|
460
611
|
"type": "uint256"
|
461
612
|
},
|
613
|
+
{
|
614
|
+
"internalType": "uint256",
|
615
|
+
"name": "updatedAt",
|
616
|
+
"type": "uint256"
|
617
|
+
},
|
462
618
|
{
|
463
619
|
"internalType": "uint256",
|
464
620
|
"name": "activatedAt",
|
@@ -500,16 +656,6 @@
|
|
500
656
|
"name": "nftId",
|
501
657
|
"type": "uint96"
|
502
658
|
},
|
503
|
-
{
|
504
|
-
"internalType": "address",
|
505
|
-
"name": "wallet",
|
506
|
-
"type": "address"
|
507
|
-
},
|
508
|
-
{
|
509
|
-
"internalType": "address",
|
510
|
-
"name": "token",
|
511
|
-
"type": "address"
|
512
|
-
},
|
513
659
|
{
|
514
660
|
"internalType": "uint256",
|
515
661
|
"name": "capital",
|
@@ -533,16 +679,62 @@
|
|
533
679
|
"inputs": [
|
534
680
|
{
|
535
681
|
"internalType": "NftId",
|
536
|
-
"name": "
|
682
|
+
"name": "poolNftId",
|
537
683
|
"type": "uint96"
|
538
684
|
}
|
539
685
|
],
|
540
|
-
"name": "
|
686
|
+
"name": "getPoolSetup",
|
541
687
|
"outputs": [
|
542
688
|
{
|
543
|
-
"
|
544
|
-
|
545
|
-
|
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"
|
546
738
|
}
|
547
739
|
],
|
548
740
|
"stateMutability": "view",
|
@@ -561,48 +753,133 @@
|
|
561
753
|
"stateMutability": "view",
|
562
754
|
"type": "function"
|
563
755
|
},
|
564
|
-
{
|
565
|
-
"inputs": [],
|
566
|
-
"name": "getRegistry",
|
567
|
-
"outputs": [
|
568
|
-
{
|
569
|
-
"internalType": "contract IRegistry",
|
570
|
-
"name": "registry",
|
571
|
-
"type": "address"
|
572
|
-
}
|
573
|
-
],
|
574
|
-
"stateMutability": "view",
|
575
|
-
"type": "function"
|
576
|
-
},
|
577
756
|
{
|
578
757
|
"inputs": [
|
579
758
|
{
|
580
|
-
"internalType": "
|
581
|
-
"name": "
|
582
|
-
"type": "
|
583
|
-
}
|
584
|
-
],
|
585
|
-
"name": "getRole",
|
586
|
-
"outputs": [
|
587
|
-
{
|
588
|
-
"internalType": "bytes32",
|
589
|
-
"name": "role",
|
590
|
-
"type": "bytes32"
|
759
|
+
"internalType": "NftId",
|
760
|
+
"name": "productNftId",
|
761
|
+
"type": "uint96"
|
591
762
|
}
|
592
763
|
],
|
593
|
-
"
|
594
|
-
"type": "function"
|
595
|
-
},
|
596
|
-
{
|
597
|
-
"inputs": [],
|
598
|
-
"name": "getRoleCount",
|
764
|
+
"name": "getProductSetup",
|
599
765
|
"outputs": [
|
600
766
|
{
|
601
|
-
"
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
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
|
+
],
|
606
883
|
"stateMutability": "view",
|
607
884
|
"type": "function"
|
608
885
|
},
|
@@ -704,14 +981,33 @@
|
|
704
981
|
"stateMutability": "view",
|
705
982
|
"type": "function"
|
706
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
|
+
},
|
707
1003
|
{
|
708
1004
|
"inputs": [],
|
709
1005
|
"name": "getType",
|
710
1006
|
"outputs": [
|
711
1007
|
{
|
712
|
-
"internalType": "
|
1008
|
+
"internalType": "ObjectType",
|
713
1009
|
"name": "objectType",
|
714
|
-
"type": "
|
1010
|
+
"type": "uint8"
|
715
1011
|
}
|
716
1012
|
],
|
717
1013
|
"stateMutability": "view",
|
@@ -785,6 +1081,66 @@
|
|
785
1081
|
"stateMutability": "view",
|
786
1082
|
"type": "function"
|
787
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
|
+
},
|
788
1144
|
{
|
789
1145
|
"inputs": [],
|
790
1146
|
"name": "register",
|
@@ -817,6 +1173,138 @@
|
|
817
1173
|
"stateMutability": "nonpayable",
|
818
1174
|
"type": "function"
|
819
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
|
+
},
|
820
1308
|
{
|
821
1309
|
"inputs": [
|
822
1310
|
{
|
@@ -845,9 +1333,14 @@
|
|
845
1333
|
"type": "uint96"
|
846
1334
|
},
|
847
1335
|
{
|
848
|
-
"internalType": "
|
1336
|
+
"internalType": "StateId",
|
849
1337
|
"name": "state",
|
850
1338
|
"type": "uint8"
|
1339
|
+
},
|
1340
|
+
{
|
1341
|
+
"internalType": "contract IERC20Metadata",
|
1342
|
+
"name": "token",
|
1343
|
+
"type": "address"
|
851
1344
|
}
|
852
1345
|
],
|
853
1346
|
"internalType": "struct IComponent.ComponentInfo",
|
@@ -873,10 +1366,104 @@
|
|
873
1366
|
"name": "poolNftId",
|
874
1367
|
"type": "uint96"
|
875
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": [
|
876
1458
|
{
|
877
1459
|
"internalType": "NftId",
|
878
1460
|
"name": "policyNftId",
|
879
1461
|
"type": "uint96"
|
1462
|
+
},
|
1463
|
+
{
|
1464
|
+
"internalType": "NftId",
|
1465
|
+
"name": "productNftId",
|
1466
|
+
"type": "uint96"
|
880
1467
|
}
|
881
1468
|
],
|
882
1469
|
"name": "underwrite",
|