@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
package/README.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# gif-next (Generic Insurance Framework next version)
|
2
2
|
|
3
|
+
## Submodules checkout
|
4
|
+
|
5
|
+
This repository uses submodules. To checkout or update to the latest submodules, run the following command after updating to any revision (or checking out the repository)
|
6
|
+
|
7
|
+
```shell
|
8
|
+
git submodule update --recursive
|
9
|
+
```
|
10
|
+
|
3
11
|
## Hardhat
|
4
12
|
|
5
13
|
### NPM Commands
|
@@ -143,7 +151,8 @@ Additionally, we use the following naming conventions:
|
|
143
151
|
|
144
152
|
We use prettier and the solidity plugin to format the code automatically.
|
145
153
|
The plugin is configured to use the style guide mentioned above.
|
146
|
-
To execute
|
154
|
+
To execute format checks run `npm run styleCheck`.
|
155
|
+
To execute formatting run `npm run styleFix`.
|
147
156
|
|
148
157
|
### Linting
|
149
158
|
|
@@ -119,14 +119,40 @@
|
|
119
119
|
"stateMutability": "view",
|
120
120
|
"type": "function"
|
121
121
|
},
|
122
|
+
{
|
123
|
+
"inputs": [],
|
124
|
+
"name": "getToken",
|
125
|
+
"outputs": [
|
126
|
+
{
|
127
|
+
"internalType": "contract IERC20Metadata",
|
128
|
+
"name": "token",
|
129
|
+
"type": "address"
|
130
|
+
}
|
131
|
+
],
|
132
|
+
"stateMutability": "view",
|
133
|
+
"type": "function"
|
134
|
+
},
|
122
135
|
{
|
123
136
|
"inputs": [],
|
124
137
|
"name": "getType",
|
125
138
|
"outputs": [
|
126
139
|
{
|
127
|
-
"internalType": "
|
140
|
+
"internalType": "ObjectType",
|
128
141
|
"name": "objectType",
|
129
|
-
"type": "
|
142
|
+
"type": "uint8"
|
143
|
+
}
|
144
|
+
],
|
145
|
+
"stateMutability": "view",
|
146
|
+
"type": "function"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"inputs": [],
|
150
|
+
"name": "getWallet",
|
151
|
+
"outputs": [
|
152
|
+
{
|
153
|
+
"internalType": "address",
|
154
|
+
"name": "walletAddress",
|
155
|
+
"type": "address"
|
130
156
|
}
|
131
157
|
],
|
132
158
|
"stateMutability": "view",
|
@@ -28,8 +28,8 @@
|
|
28
28
|
"type": "function"
|
29
29
|
}
|
30
30
|
],
|
31
|
-
"bytecode": "
|
32
|
-
"deployedBytecode": "
|
31
|
+
"bytecode": "0x608060405234801561001057600080fd5b5060405161011438038061011483398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b6082806100926000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063de7b5d1414602d575b600080fd5b600054604080516001600160a01b039092168252519081900360200190f3fea264697066735822122073a0ea8fa4352d28b2a129d826cfd42d4c8f65d3a006cdf283aa909e0fac0e4264736f6c63430008140033",
|
32
|
+
"deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063de7b5d1414602d575b600080fd5b600054604080516001600160a01b039092168252519081900360200190f3fea264697066735822122073a0ea8fa4352d28b2a129d826cfd42d4c8f65d3a006cdf283aa909e0fac0e4264736f6c63430008140033",
|
33
33
|
"linkReferences": {},
|
34
34
|
"deployedLinkReferences": {}
|
35
35
|
}
|
@@ -106,6 +106,31 @@
|
|
106
106
|
"stateMutability": "view",
|
107
107
|
"type": "function"
|
108
108
|
},
|
109
|
+
{
|
110
|
+
"inputs": [],
|
111
|
+
"name": "getPerformanceFee",
|
112
|
+
"outputs": [
|
113
|
+
{
|
114
|
+
"components": [
|
115
|
+
{
|
116
|
+
"internalType": "UFixed",
|
117
|
+
"name": "fractionalFee",
|
118
|
+
"type": "uint256"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"internalType": "uint256",
|
122
|
+
"name": "fixedFee",
|
123
|
+
"type": "uint256"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"internalType": "struct Fee",
|
127
|
+
"name": "performanceFee",
|
128
|
+
"type": "tuple"
|
129
|
+
}
|
130
|
+
],
|
131
|
+
"stateMutability": "view",
|
132
|
+
"type": "function"
|
133
|
+
},
|
109
134
|
{
|
110
135
|
"inputs": [],
|
111
136
|
"name": "getRegistry",
|
@@ -119,14 +144,65 @@
|
|
119
144
|
"stateMutability": "view",
|
120
145
|
"type": "function"
|
121
146
|
},
|
147
|
+
{
|
148
|
+
"inputs": [],
|
149
|
+
"name": "getStakingFee",
|
150
|
+
"outputs": [
|
151
|
+
{
|
152
|
+
"components": [
|
153
|
+
{
|
154
|
+
"internalType": "UFixed",
|
155
|
+
"name": "fractionalFee",
|
156
|
+
"type": "uint256"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"internalType": "uint256",
|
160
|
+
"name": "fixedFee",
|
161
|
+
"type": "uint256"
|
162
|
+
}
|
163
|
+
],
|
164
|
+
"internalType": "struct Fee",
|
165
|
+
"name": "stakingFee",
|
166
|
+
"type": "tuple"
|
167
|
+
}
|
168
|
+
],
|
169
|
+
"stateMutability": "view",
|
170
|
+
"type": "function"
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"inputs": [],
|
174
|
+
"name": "getToken",
|
175
|
+
"outputs": [
|
176
|
+
{
|
177
|
+
"internalType": "contract IERC20Metadata",
|
178
|
+
"name": "token",
|
179
|
+
"type": "address"
|
180
|
+
}
|
181
|
+
],
|
182
|
+
"stateMutability": "view",
|
183
|
+
"type": "function"
|
184
|
+
},
|
122
185
|
{
|
123
186
|
"inputs": [],
|
124
187
|
"name": "getType",
|
125
188
|
"outputs": [
|
126
189
|
{
|
127
|
-
"internalType": "
|
190
|
+
"internalType": "ObjectType",
|
128
191
|
"name": "objectType",
|
129
|
-
"type": "
|
192
|
+
"type": "uint8"
|
193
|
+
}
|
194
|
+
],
|
195
|
+
"stateMutability": "view",
|
196
|
+
"type": "function"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"inputs": [],
|
200
|
+
"name": "getWallet",
|
201
|
+
"outputs": [
|
202
|
+
{
|
203
|
+
"internalType": "address",
|
204
|
+
"name": "walletAddress",
|
205
|
+
"type": "address"
|
130
206
|
}
|
131
207
|
],
|
132
208
|
"stateMutability": "view",
|
@@ -3,104 +3,26 @@
|
|
3
3
|
"contractName": "IProductComponent",
|
4
4
|
"sourceName": "contracts/components/IProduct.sol",
|
5
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
|
-
"name": "getData",
|
34
|
-
"outputs": [
|
35
|
-
{
|
36
|
-
"internalType": "bytes",
|
37
|
-
"name": "data",
|
38
|
-
"type": "bytes"
|
39
|
-
}
|
40
|
-
],
|
41
|
-
"stateMutability": "view",
|
42
|
-
"type": "function"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"inputs": [],
|
46
|
-
"name": "getInitialOwner",
|
47
|
-
"outputs": [
|
48
|
-
{
|
49
|
-
"internalType": "address",
|
50
|
-
"name": "initialOwner",
|
51
|
-
"type": "address"
|
52
|
-
}
|
53
|
-
],
|
54
|
-
"stateMutability": "view",
|
55
|
-
"type": "function"
|
56
|
-
},
|
57
|
-
{
|
58
|
-
"inputs": [],
|
59
|
-
"name": "getInstance",
|
60
|
-
"outputs": [
|
61
|
-
{
|
62
|
-
"internalType": "contract IInstance",
|
63
|
-
"name": "instance",
|
64
|
-
"type": "address"
|
65
|
-
}
|
66
|
-
],
|
67
|
-
"stateMutability": "view",
|
68
|
-
"type": "function"
|
69
|
-
},
|
70
|
-
{
|
71
|
-
"inputs": [],
|
72
|
-
"name": "getNftId",
|
73
|
-
"outputs": [
|
74
|
-
{
|
75
|
-
"internalType": "NftId",
|
76
|
-
"name": "nftId",
|
77
|
-
"type": "uint96"
|
78
|
-
}
|
79
|
-
],
|
80
|
-
"stateMutability": "view",
|
81
|
-
"type": "function"
|
82
|
-
},
|
83
|
-
{
|
84
|
-
"inputs": [],
|
85
|
-
"name": "getOwner",
|
86
|
-
"outputs": [
|
87
|
-
{
|
88
|
-
"internalType": "address",
|
89
|
-
"name": "owner",
|
90
|
-
"type": "address"
|
91
|
-
}
|
92
|
-
],
|
93
|
-
"stateMutability": "view",
|
94
|
-
"type": "function"
|
95
|
-
},
|
96
6
|
{
|
97
7
|
"inputs": [],
|
98
|
-
"name": "
|
8
|
+
"name": "getPolicyFee",
|
99
9
|
"outputs": [
|
100
10
|
{
|
101
|
-
"
|
102
|
-
|
103
|
-
|
11
|
+
"components": [
|
12
|
+
{
|
13
|
+
"internalType": "UFixed",
|
14
|
+
"name": "fractionalFee",
|
15
|
+
"type": "uint256"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"internalType": "uint256",
|
19
|
+
"name": "fixedFee",
|
20
|
+
"type": "uint256"
|
21
|
+
}
|
22
|
+
],
|
23
|
+
"internalType": "struct Fee",
|
24
|
+
"name": "policyFee",
|
25
|
+
"type": "tuple"
|
104
26
|
}
|
105
27
|
],
|
106
28
|
"stateMutability": "view",
|
@@ -121,68 +43,28 @@
|
|
121
43
|
},
|
122
44
|
{
|
123
45
|
"inputs": [],
|
124
|
-
"name": "
|
125
|
-
"outputs": [
|
126
|
-
{
|
127
|
-
"internalType": "contract IRegistry",
|
128
|
-
"name": "registry",
|
129
|
-
"type": "address"
|
130
|
-
}
|
131
|
-
],
|
132
|
-
"stateMutability": "view",
|
133
|
-
"type": "function"
|
134
|
-
},
|
135
|
-
{
|
136
|
-
"inputs": [],
|
137
|
-
"name": "getType",
|
138
|
-
"outputs": [
|
139
|
-
{
|
140
|
-
"internalType": "uint256",
|
141
|
-
"name": "objectType",
|
142
|
-
"type": "uint256"
|
143
|
-
}
|
144
|
-
],
|
145
|
-
"stateMutability": "view",
|
146
|
-
"type": "function"
|
147
|
-
},
|
148
|
-
{
|
149
|
-
"inputs": [],
|
150
|
-
"name": "isRegisterable",
|
46
|
+
"name": "getProcessingFee",
|
151
47
|
"outputs": [
|
152
48
|
{
|
153
|
-
"
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
"
|
167
|
-
"
|
168
|
-
"type": "bool"
|
49
|
+
"components": [
|
50
|
+
{
|
51
|
+
"internalType": "UFixed",
|
52
|
+
"name": "fractionalFee",
|
53
|
+
"type": "uint256"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"internalType": "uint256",
|
57
|
+
"name": "fixedFee",
|
58
|
+
"type": "uint256"
|
59
|
+
}
|
60
|
+
],
|
61
|
+
"internalType": "struct Fee",
|
62
|
+
"name": "processingFee",
|
63
|
+
"type": "tuple"
|
169
64
|
}
|
170
65
|
],
|
171
66
|
"stateMutability": "view",
|
172
67
|
"type": "function"
|
173
|
-
},
|
174
|
-
{
|
175
|
-
"inputs": [],
|
176
|
-
"name": "register",
|
177
|
-
"outputs": [
|
178
|
-
{
|
179
|
-
"internalType": "NftId",
|
180
|
-
"name": "nftId",
|
181
|
-
"type": "uint96"
|
182
|
-
}
|
183
|
-
],
|
184
|
-
"stateMutability": "nonpayable",
|
185
|
-
"type": "function"
|
186
68
|
}
|
187
69
|
],
|
188
70
|
"bytecode": "0x",
|
@@ -14,6 +14,45 @@
|
|
14
14
|
"internalType": "address",
|
15
15
|
"name": "instance",
|
16
16
|
"type": "address"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"internalType": "address",
|
20
|
+
"name": "token",
|
21
|
+
"type": "address"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"components": [
|
25
|
+
{
|
26
|
+
"internalType": "UFixed",
|
27
|
+
"name": "fractionalFee",
|
28
|
+
"type": "uint256"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"internalType": "uint256",
|
32
|
+
"name": "fixedFee",
|
33
|
+
"type": "uint256"
|
34
|
+
}
|
35
|
+
],
|
36
|
+
"internalType": "struct Fee",
|
37
|
+
"name": "stakingFee",
|
38
|
+
"type": "tuple"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"components": [
|
42
|
+
{
|
43
|
+
"internalType": "UFixed",
|
44
|
+
"name": "fractionalFee",
|
45
|
+
"type": "uint256"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"internalType": "uint256",
|
49
|
+
"name": "fixedFee",
|
50
|
+
"type": "uint256"
|
51
|
+
}
|
52
|
+
],
|
53
|
+
"internalType": "struct Fee",
|
54
|
+
"name": "performanceFee",
|
55
|
+
"type": "tuple"
|
17
56
|
}
|
18
57
|
],
|
19
58
|
"stateMutability": "nonpayable",
|
@@ -122,6 +161,31 @@
|
|
122
161
|
"stateMutability": "view",
|
123
162
|
"type": "function"
|
124
163
|
},
|
164
|
+
{
|
165
|
+
"inputs": [],
|
166
|
+
"name": "getPerformanceFee",
|
167
|
+
"outputs": [
|
168
|
+
{
|
169
|
+
"components": [
|
170
|
+
{
|
171
|
+
"internalType": "UFixed",
|
172
|
+
"name": "fractionalFee",
|
173
|
+
"type": "uint256"
|
174
|
+
},
|
175
|
+
{
|
176
|
+
"internalType": "uint256",
|
177
|
+
"name": "fixedFee",
|
178
|
+
"type": "uint256"
|
179
|
+
}
|
180
|
+
],
|
181
|
+
"internalType": "struct Fee",
|
182
|
+
"name": "performanceFee",
|
183
|
+
"type": "tuple"
|
184
|
+
}
|
185
|
+
],
|
186
|
+
"stateMutability": "view",
|
187
|
+
"type": "function"
|
188
|
+
},
|
125
189
|
{
|
126
190
|
"inputs": [],
|
127
191
|
"name": "getRegistry",
|
@@ -135,14 +199,65 @@
|
|
135
199
|
"stateMutability": "view",
|
136
200
|
"type": "function"
|
137
201
|
},
|
202
|
+
{
|
203
|
+
"inputs": [],
|
204
|
+
"name": "getStakingFee",
|
205
|
+
"outputs": [
|
206
|
+
{
|
207
|
+
"components": [
|
208
|
+
{
|
209
|
+
"internalType": "UFixed",
|
210
|
+
"name": "fractionalFee",
|
211
|
+
"type": "uint256"
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"internalType": "uint256",
|
215
|
+
"name": "fixedFee",
|
216
|
+
"type": "uint256"
|
217
|
+
}
|
218
|
+
],
|
219
|
+
"internalType": "struct Fee",
|
220
|
+
"name": "stakingFee",
|
221
|
+
"type": "tuple"
|
222
|
+
}
|
223
|
+
],
|
224
|
+
"stateMutability": "view",
|
225
|
+
"type": "function"
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"inputs": [],
|
229
|
+
"name": "getToken",
|
230
|
+
"outputs": [
|
231
|
+
{
|
232
|
+
"internalType": "contract IERC20Metadata",
|
233
|
+
"name": "token",
|
234
|
+
"type": "address"
|
235
|
+
}
|
236
|
+
],
|
237
|
+
"stateMutability": "view",
|
238
|
+
"type": "function"
|
239
|
+
},
|
138
240
|
{
|
139
241
|
"inputs": [],
|
140
242
|
"name": "getType",
|
141
243
|
"outputs": [
|
142
244
|
{
|
143
|
-
"internalType": "
|
245
|
+
"internalType": "ObjectType",
|
144
246
|
"name": "",
|
145
|
-
"type": "
|
247
|
+
"type": "uint8"
|
248
|
+
}
|
249
|
+
],
|
250
|
+
"stateMutability": "pure",
|
251
|
+
"type": "function"
|
252
|
+
},
|
253
|
+
{
|
254
|
+
"inputs": [],
|
255
|
+
"name": "getWallet",
|
256
|
+
"outputs": [
|
257
|
+
{
|
258
|
+
"internalType": "address",
|
259
|
+
"name": "walletAddress",
|
260
|
+
"type": "address"
|
146
261
|
}
|
147
262
|
],
|
148
263
|
"stateMutability": "view",
|
@@ -188,14 +303,14 @@
|
|
188
303
|
"type": "function"
|
189
304
|
}
|
190
305
|
],
|
191
|
-
"bytecode": "
|
192
|
-
"deployedBytecode": "
|
306
|
+
"bytecode": "0x608060405234801561001057600080fd5b50604051610a9a380380610a9a83398101604081905261002f9161011a565b600080546001600160a01b039687166001600160a01b03199182161790915560018054821633179055600280549587169582169590951790945560048054851630179055600580549590931694909316939093179055815160065560209182015160075580516008550151600955610181565b80516001600160a01b03811681146100b957600080fd5b919050565b6000604082840312156100d057600080fd5b604080519081016001600160401b038111828210171561010057634e487b7160e01b600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b600080600080600060e0868803121561013257600080fd5b61013b866100a2565b9450610149602087016100a2565b9350610157604087016100a2565b925061016687606088016100be565b91506101758760a088016100be565b90509295509295909350565b61090a806101906000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80633bc5de301161009757806379e829d01161006657806379e829d014610223578063893d20e81461022a578063de7b5d1414610232578063fb2cb1011461024357600080fd5b80633bc5de30146101c85780634b270a46146101dd5780635ab1bd531461020a578063644c45e01461021b57600080fd5b806321df0da7116100d357806321df0da7146101535780632236684414610164578063235c36031461017c57806331b62a3b146101c057600080fd5b806313299604146100fa57806315dae03e146101245780631aa3a00814610133575b600080fd5b6004546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6040516050815260200161011b565b61013b610259565b6040516001600160601b03909116815260200161011b565b6005546001600160a01b0316610107565b61016c6104af565b604051901515815260200161011b565b604080518082018252600080825260209182015281518083019092526008548252600954908201525b6040805182518152602092830151928101929092520161011b565b61013b61059b565b6101d0610610565b60405161011b91906107ff565b604080518082018252600080825260209182015281518083019092526006548252600754908201526101a5565b6000546001600160a01b0316610107565b61013b6106ae565b600161016c565b6101076106f7565b6002546001600160a01b0316610107565b6001546001600160a01b0316610107565b905090565b600061026d6001546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146102ac5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b6000546001600160a01b03166103045760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5052442d3030313a52454749535452595f5a45524f000000000060448201526064016102a3565b60005460025460405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015610350573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610374919061084d565b6103ce5760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f5245474953604482015264151154915160da1b60648201526084016102a3565b60025460408051636fa2985360e01b815290516000926001600160a01b031691636fa298539160048083019260209291908290030181865afa158015610418573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043c919061088e565b604051632210724360e11b81523060048201529091506001600160a01b03821690634420e486906024016020604051808303816000875af1158015610485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a991906108ab565b91505090565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051c91906108ab565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610577573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a9919061084d565b60006105af6002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025491906108ab565b60606106246002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610661573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068591906108ab565b604080516001600160601b03909216602083015201604051602081830303815290604052905090565b60008054604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e90602401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076491906108ab565b60005460405163df33330b60e01b81526001600160601b03831660048201529192506001600160a01b03169063df33330b90602401602060405180830381865afa1580156107b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107da919061088e565b91506001600160a01b0382166107fb576001546001600160a01b03166104a9565b5090565b600060208083528351808285015260005b8181101561082c57858101830151858201604001528201610810565b506000604082860101526040601f19601f8301168501019250505092915050565b60006020828403121561085f57600080fd5b8151801515811461086f57600080fd5b9392505050565b6001600160a01b038116811461088b57600080fd5b50565b6000602082840312156108a057600080fd5b815161086f81610876565b6000602082840312156108bd57600080fd5b81516001600160601b038116811461086f57600080fdfea264697066735822122048ece6eb5d40c2d8880ad834ec80994974ffc9738c34cccd5f4fbd5e942cf74364736f6c63430008140033",
|
307
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80633bc5de301161009757806379e829d01161006657806379e829d014610223578063893d20e81461022a578063de7b5d1414610232578063fb2cb1011461024357600080fd5b80633bc5de30146101c85780634b270a46146101dd5780635ab1bd531461020a578063644c45e01461021b57600080fd5b806321df0da7116100d357806321df0da7146101535780632236684414610164578063235c36031461017c57806331b62a3b146101c057600080fd5b806313299604146100fa57806315dae03e146101245780631aa3a00814610133575b600080fd5b6004546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6040516050815260200161011b565b61013b610259565b6040516001600160601b03909116815260200161011b565b6005546001600160a01b0316610107565b61016c6104af565b604051901515815260200161011b565b604080518082018252600080825260209182015281518083019092526008548252600954908201525b6040805182518152602092830151928101929092520161011b565b61013b61059b565b6101d0610610565b60405161011b91906107ff565b604080518082018252600080825260209182015281518083019092526006548252600754908201526101a5565b6000546001600160a01b0316610107565b61013b6106ae565b600161016c565b6101076106f7565b6002546001600160a01b0316610107565b6001546001600160a01b0316610107565b905090565b600061026d6001546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146102ac5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b6000546001600160a01b03166103045760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5052442d3030313a52454749535452595f5a45524f000000000060448201526064016102a3565b60005460025460405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015610350573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610374919061084d565b6103ce5760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f5245474953604482015264151154915160da1b60648201526084016102a3565b60025460408051636fa2985360e01b815290516000926001600160a01b031691636fa298539160048083019260209291908290030181865afa158015610418573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043c919061088e565b604051632210724360e11b81523060048201529091506001600160a01b03821690634420e486906024016020604051808303816000875af1158015610485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a991906108ab565b91505090565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051c91906108ab565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610577573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a9919061084d565b60006105af6002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025491906108ab565b60606106246002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610661573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068591906108ab565b604080516001600160601b03909216602083015201604051602081830303815290604052905090565b60008054604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e90602401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076491906108ab565b60005460405163df33330b60e01b81526001600160601b03831660048201529192506001600160a01b03169063df33330b90602401602060405180830381865afa1580156107b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107da919061088e565b91506001600160a01b0382166107fb576001546001600160a01b03166104a9565b5090565b600060208083528351808285015260005b8181101561082c57858101830151858201604001528201610810565b506000604082860101526040601f19601f8301168501019250505092915050565b60006020828403121561085f57600080fd5b8151801515811461086f57600080fd5b9392505050565b6001600160a01b038116811461088b57600080fd5b50565b6000602082840312156108a057600080fd5b815161086f81610876565b6000602082840312156108bd57600080fd5b81516001600160601b038116811461086f57600080fdfea264697066735822122048ece6eb5d40c2d8880ad834ec80994974ffc9738c34cccd5f4fbd5e942cf74364736f6c63430008140033",
|
193
308
|
"linkReferences": {
|
194
309
|
"contracts/types/NftId.sol": {
|
195
310
|
"NftIdLib": [
|
196
311
|
{
|
197
312
|
"length": 20,
|
198
|
-
"start":
|
313
|
+
"start": 1741
|
199
314
|
}
|
200
315
|
]
|
201
316
|
}
|
@@ -205,7 +320,7 @@
|
|
205
320
|
"NftIdLib": [
|
206
321
|
{
|
207
322
|
"length": 20,
|
208
|
-
"start":
|
323
|
+
"start": 1341
|
209
324
|
}
|
210
325
|
]
|
211
326
|
}
|