@etherisc/gif-next 0.0.2-fe77319 → 0.0.2-ffba655
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +7 -7
- 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 +6 -6
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +8 -8
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +29 -11
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +31 -13
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +4 -0
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +105 -0
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +4 -0
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +105 -0
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +4 -0
- package/artifacts/contracts/experiment/{A.sol → inheritance/A.sol}/A.json +5 -5
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +4 -0
- package/artifacts/contracts/experiment/{A.sol → inheritance/A.sol}/AShared.json +3 -3
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +4 -0
- package/artifacts/contracts/experiment/{B.sol → inheritance/B.sol}/B.json +2 -2
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +4 -0
- package/artifacts/contracts/experiment/{C.sol → inheritance/C.sol}/C.json +2 -2
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +4 -0
- package/artifacts/contracts/experiment/{IA.sol → inheritance/IA.sol}/IA.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +4 -0
- package/artifacts/contracts/experiment/{IA.sol → inheritance/IA.sol}/ISharedA.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +4 -0
- package/artifacts/contracts/experiment/{IB.sol → inheritance/IB.sol}/IB.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +4 -0
- package/artifacts/contracts/experiment/{IC.sol → inheritance/IC.sol}/IC.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +4 -0
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +10 -0
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +4 -0
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +10 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +60 -60
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +122 -64
- 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 +24 -24
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +48 -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 +6 -6
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +26 -26
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +3 -3
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +1 -1
- 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 +18 -18
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +18 -18
- 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 +10 -10
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +10 -10
- 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 +8 -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 +54 -12
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +4 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +534 -0
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +4 -0
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +452 -0
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +6 -6
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +41 -33
- 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 +7 -7
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +100 -42
- 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 +4 -0
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +10 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +92 -0
- package/artifacts/contracts/types/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 +453 -0
- package/contracts/components/Component.sol +3 -3
- package/contracts/components/IProduct.sol +2 -1
- package/contracts/components/Product.sol +5 -4
- package/contracts/experiment/errors/Require.sol +33 -0
- package/contracts/experiment/errors/Revert.sol +39 -0
- package/contracts/experiment/{B.sol → inheritance/B.sol} +1 -1
- package/contracts/experiment/{C.sol → inheritance/C.sol} +1 -1
- package/contracts/experiment/types/TypeA.sol +42 -0
- package/contracts/experiment/types/TypeB.sol +24 -0
- package/contracts/instance/IInstance.sol +3 -3
- package/contracts/instance/Instance.sol +4 -3
- package/contracts/instance/component/ComponentModule.sol +32 -43
- package/contracts/instance/component/IComponent.sol +11 -10
- package/contracts/instance/policy/IPolicy.sol +8 -8
- package/contracts/instance/policy/PolicyModule.sol +12 -11
- package/contracts/instance/pool/IPoolModule.sol +6 -5
- package/contracts/instance/pool/PoolModule.sol +9 -6
- package/contracts/instance/product/IProductService.sol +5 -4
- package/contracts/instance/product/ProductService.sol +14 -11
- package/contracts/registry/ChainNft.sol +173 -0
- package/contracts/registry/IChainNft.sol +18 -0
- package/contracts/registry/IRegistry.sol +16 -12
- package/contracts/registry/Registry.sol +43 -58
- package/contracts/types/Blocknumber.sol +60 -0
- package/contracts/types/ChainId.sol +30 -0
- package/contracts/types/NftId.sol +35 -0
- package/contracts/types/Timestamp.sol +55 -0
- package/contracts/types/UFixed.sol +211 -0
- package/package.json +1 -1
- package/artifacts/contracts/experiment/A.sol/A.dbg.json +0 -4
- package/artifacts/contracts/experiment/A.sol/AShared.dbg.json +0 -4
- package/artifacts/contracts/experiment/B.sol/B.dbg.json +0 -4
- package/artifacts/contracts/experiment/C.sol/C.dbg.json +0 -4
- package/artifacts/contracts/experiment/IA.sol/IA.dbg.json +0 -4
- package/artifacts/contracts/experiment/IA.sol/ISharedA.dbg.json +0 -4
- package/artifacts/contracts/experiment/IB.sol/IB.dbg.json +0 -4
- package/artifacts/contracts/experiment/IC.sol/IC.dbg.json +0 -4
- /package/contracts/experiment/{A.sol → inheritance/A.sol} +0 -0
- /package/contracts/experiment/{IA.sol → inheritance/IA.sol} +0 -0
- /package/contracts/experiment/{IB.sol → inheritance/IB.sol} +0 -0
- /package/contracts/experiment/{IC.sol → inheritance/IC.sol} +0 -0
@@ -0,0 +1,453 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "UFixedMathLib",
|
4
|
+
"sourceName": "contracts/types/UFixed.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [],
|
8
|
+
"name": "EXP",
|
9
|
+
"outputs": [
|
10
|
+
{
|
11
|
+
"internalType": "int8",
|
12
|
+
"name": "",
|
13
|
+
"type": "int8"
|
14
|
+
}
|
15
|
+
],
|
16
|
+
"stateMutability": "view",
|
17
|
+
"type": "function"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"inputs": [],
|
21
|
+
"name": "MULTIPLIER",
|
22
|
+
"outputs": [
|
23
|
+
{
|
24
|
+
"internalType": "uint256",
|
25
|
+
"name": "",
|
26
|
+
"type": "uint256"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"stateMutability": "view",
|
30
|
+
"type": "function"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"inputs": [],
|
34
|
+
"name": "MULTIPLIER_HALF",
|
35
|
+
"outputs": [
|
36
|
+
{
|
37
|
+
"internalType": "uint256",
|
38
|
+
"name": "",
|
39
|
+
"type": "uint256"
|
40
|
+
}
|
41
|
+
],
|
42
|
+
"stateMutability": "view",
|
43
|
+
"type": "function"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"inputs": [],
|
47
|
+
"name": "ROUNDING_DEFAULT",
|
48
|
+
"outputs": [
|
49
|
+
{
|
50
|
+
"internalType": "enum UFixedMathLib.Rounding",
|
51
|
+
"name": "",
|
52
|
+
"type": "UFixedMathLib.Rounding"
|
53
|
+
}
|
54
|
+
],
|
55
|
+
"stateMutability": "view",
|
56
|
+
"type": "function"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"inputs": [
|
60
|
+
{
|
61
|
+
"internalType": "UFixed",
|
62
|
+
"name": "a",
|
63
|
+
"type": "uint256"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"internalType": "UFixed",
|
67
|
+
"name": "b",
|
68
|
+
"type": "uint256"
|
69
|
+
}
|
70
|
+
],
|
71
|
+
"name": "add",
|
72
|
+
"outputs": [
|
73
|
+
{
|
74
|
+
"internalType": "UFixed",
|
75
|
+
"name": "",
|
76
|
+
"type": "uint256"
|
77
|
+
}
|
78
|
+
],
|
79
|
+
"stateMutability": "pure",
|
80
|
+
"type": "function"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"inputs": [],
|
84
|
+
"name": "decimals",
|
85
|
+
"outputs": [
|
86
|
+
{
|
87
|
+
"internalType": "uint256",
|
88
|
+
"name": "",
|
89
|
+
"type": "uint256"
|
90
|
+
}
|
91
|
+
],
|
92
|
+
"stateMutability": "pure",
|
93
|
+
"type": "function"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"inputs": [
|
97
|
+
{
|
98
|
+
"internalType": "UFixed",
|
99
|
+
"name": "a",
|
100
|
+
"type": "uint256"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"internalType": "UFixed",
|
104
|
+
"name": "b",
|
105
|
+
"type": "uint256"
|
106
|
+
}
|
107
|
+
],
|
108
|
+
"name": "delta",
|
109
|
+
"outputs": [
|
110
|
+
{
|
111
|
+
"internalType": "UFixed",
|
112
|
+
"name": "",
|
113
|
+
"type": "uint256"
|
114
|
+
}
|
115
|
+
],
|
116
|
+
"stateMutability": "pure",
|
117
|
+
"type": "function"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"inputs": [
|
121
|
+
{
|
122
|
+
"internalType": "UFixed",
|
123
|
+
"name": "a",
|
124
|
+
"type": "uint256"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"internalType": "UFixed",
|
128
|
+
"name": "b",
|
129
|
+
"type": "uint256"
|
130
|
+
}
|
131
|
+
],
|
132
|
+
"name": "div",
|
133
|
+
"outputs": [
|
134
|
+
{
|
135
|
+
"internalType": "UFixed",
|
136
|
+
"name": "",
|
137
|
+
"type": "uint256"
|
138
|
+
}
|
139
|
+
],
|
140
|
+
"stateMutability": "pure",
|
141
|
+
"type": "function"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"inputs": [
|
145
|
+
{
|
146
|
+
"internalType": "UFixed",
|
147
|
+
"name": "a",
|
148
|
+
"type": "uint256"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"internalType": "UFixed",
|
152
|
+
"name": "b",
|
153
|
+
"type": "uint256"
|
154
|
+
}
|
155
|
+
],
|
156
|
+
"name": "eq",
|
157
|
+
"outputs": [
|
158
|
+
{
|
159
|
+
"internalType": "bool",
|
160
|
+
"name": "isEqual",
|
161
|
+
"type": "bool"
|
162
|
+
}
|
163
|
+
],
|
164
|
+
"stateMutability": "pure",
|
165
|
+
"type": "function"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"inputs": [
|
169
|
+
{
|
170
|
+
"internalType": "UFixed",
|
171
|
+
"name": "a",
|
172
|
+
"type": "uint256"
|
173
|
+
}
|
174
|
+
],
|
175
|
+
"name": "eqz",
|
176
|
+
"outputs": [
|
177
|
+
{
|
178
|
+
"internalType": "bool",
|
179
|
+
"name": "isZero",
|
180
|
+
"type": "bool"
|
181
|
+
}
|
182
|
+
],
|
183
|
+
"stateMutability": "pure",
|
184
|
+
"type": "function"
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"inputs": [
|
188
|
+
{
|
189
|
+
"internalType": "UFixed",
|
190
|
+
"name": "a",
|
191
|
+
"type": "uint256"
|
192
|
+
}
|
193
|
+
],
|
194
|
+
"name": "ftoi",
|
195
|
+
"outputs": [
|
196
|
+
{
|
197
|
+
"internalType": "uint256",
|
198
|
+
"name": "",
|
199
|
+
"type": "uint256"
|
200
|
+
}
|
201
|
+
],
|
202
|
+
"stateMutability": "pure",
|
203
|
+
"type": "function"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"inputs": [
|
207
|
+
{
|
208
|
+
"internalType": "UFixed",
|
209
|
+
"name": "a",
|
210
|
+
"type": "uint256"
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"internalType": "enum UFixedMathLib.Rounding",
|
214
|
+
"name": "rounding",
|
215
|
+
"type": "UFixedMathLib.Rounding"
|
216
|
+
}
|
217
|
+
],
|
218
|
+
"name": "ftoi",
|
219
|
+
"outputs": [
|
220
|
+
{
|
221
|
+
"internalType": "uint256",
|
222
|
+
"name": "",
|
223
|
+
"type": "uint256"
|
224
|
+
}
|
225
|
+
],
|
226
|
+
"stateMutability": "pure",
|
227
|
+
"type": "function"
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"inputs": [
|
231
|
+
{
|
232
|
+
"internalType": "UFixed",
|
233
|
+
"name": "a",
|
234
|
+
"type": "uint256"
|
235
|
+
},
|
236
|
+
{
|
237
|
+
"internalType": "UFixed",
|
238
|
+
"name": "b",
|
239
|
+
"type": "uint256"
|
240
|
+
}
|
241
|
+
],
|
242
|
+
"name": "gt",
|
243
|
+
"outputs": [
|
244
|
+
{
|
245
|
+
"internalType": "bool",
|
246
|
+
"name": "isGreaterThan",
|
247
|
+
"type": "bool"
|
248
|
+
}
|
249
|
+
],
|
250
|
+
"stateMutability": "pure",
|
251
|
+
"type": "function"
|
252
|
+
},
|
253
|
+
{
|
254
|
+
"inputs": [
|
255
|
+
{
|
256
|
+
"internalType": "UFixed",
|
257
|
+
"name": "a",
|
258
|
+
"type": "uint256"
|
259
|
+
},
|
260
|
+
{
|
261
|
+
"internalType": "UFixed",
|
262
|
+
"name": "b",
|
263
|
+
"type": "uint256"
|
264
|
+
}
|
265
|
+
],
|
266
|
+
"name": "gte",
|
267
|
+
"outputs": [
|
268
|
+
{
|
269
|
+
"internalType": "bool",
|
270
|
+
"name": "isGreaterThan",
|
271
|
+
"type": "bool"
|
272
|
+
}
|
273
|
+
],
|
274
|
+
"stateMutability": "pure",
|
275
|
+
"type": "function"
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"inputs": [
|
279
|
+
{
|
280
|
+
"internalType": "UFixed",
|
281
|
+
"name": "a",
|
282
|
+
"type": "uint256"
|
283
|
+
}
|
284
|
+
],
|
285
|
+
"name": "gtz",
|
286
|
+
"outputs": [
|
287
|
+
{
|
288
|
+
"internalType": "bool",
|
289
|
+
"name": "isZero",
|
290
|
+
"type": "bool"
|
291
|
+
}
|
292
|
+
],
|
293
|
+
"stateMutability": "pure",
|
294
|
+
"type": "function"
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"inputs": [
|
298
|
+
{
|
299
|
+
"internalType": "uint256",
|
300
|
+
"name": "a",
|
301
|
+
"type": "uint256"
|
302
|
+
}
|
303
|
+
],
|
304
|
+
"name": "itof",
|
305
|
+
"outputs": [
|
306
|
+
{
|
307
|
+
"internalType": "UFixed",
|
308
|
+
"name": "",
|
309
|
+
"type": "uint256"
|
310
|
+
}
|
311
|
+
],
|
312
|
+
"stateMutability": "pure",
|
313
|
+
"type": "function"
|
314
|
+
},
|
315
|
+
{
|
316
|
+
"inputs": [
|
317
|
+
{
|
318
|
+
"internalType": "uint256",
|
319
|
+
"name": "a",
|
320
|
+
"type": "uint256"
|
321
|
+
},
|
322
|
+
{
|
323
|
+
"internalType": "int8",
|
324
|
+
"name": "exp",
|
325
|
+
"type": "int8"
|
326
|
+
}
|
327
|
+
],
|
328
|
+
"name": "itof",
|
329
|
+
"outputs": [
|
330
|
+
{
|
331
|
+
"internalType": "UFixed",
|
332
|
+
"name": "",
|
333
|
+
"type": "uint256"
|
334
|
+
}
|
335
|
+
],
|
336
|
+
"stateMutability": "pure",
|
337
|
+
"type": "function"
|
338
|
+
},
|
339
|
+
{
|
340
|
+
"inputs": [
|
341
|
+
{
|
342
|
+
"internalType": "UFixed",
|
343
|
+
"name": "a",
|
344
|
+
"type": "uint256"
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"internalType": "UFixed",
|
348
|
+
"name": "b",
|
349
|
+
"type": "uint256"
|
350
|
+
}
|
351
|
+
],
|
352
|
+
"name": "lt",
|
353
|
+
"outputs": [
|
354
|
+
{
|
355
|
+
"internalType": "bool",
|
356
|
+
"name": "isGreaterThan",
|
357
|
+
"type": "bool"
|
358
|
+
}
|
359
|
+
],
|
360
|
+
"stateMutability": "pure",
|
361
|
+
"type": "function"
|
362
|
+
},
|
363
|
+
{
|
364
|
+
"inputs": [
|
365
|
+
{
|
366
|
+
"internalType": "UFixed",
|
367
|
+
"name": "a",
|
368
|
+
"type": "uint256"
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"internalType": "UFixed",
|
372
|
+
"name": "b",
|
373
|
+
"type": "uint256"
|
374
|
+
}
|
375
|
+
],
|
376
|
+
"name": "lte",
|
377
|
+
"outputs": [
|
378
|
+
{
|
379
|
+
"internalType": "bool",
|
380
|
+
"name": "isGreaterThan",
|
381
|
+
"type": "bool"
|
382
|
+
}
|
383
|
+
],
|
384
|
+
"stateMutability": "pure",
|
385
|
+
"type": "function"
|
386
|
+
},
|
387
|
+
{
|
388
|
+
"inputs": [
|
389
|
+
{
|
390
|
+
"internalType": "UFixed",
|
391
|
+
"name": "a",
|
392
|
+
"type": "uint256"
|
393
|
+
},
|
394
|
+
{
|
395
|
+
"internalType": "UFixed",
|
396
|
+
"name": "b",
|
397
|
+
"type": "uint256"
|
398
|
+
}
|
399
|
+
],
|
400
|
+
"name": "mul",
|
401
|
+
"outputs": [
|
402
|
+
{
|
403
|
+
"internalType": "UFixed",
|
404
|
+
"name": "",
|
405
|
+
"type": "uint256"
|
406
|
+
}
|
407
|
+
],
|
408
|
+
"stateMutability": "pure",
|
409
|
+
"type": "function"
|
410
|
+
},
|
411
|
+
{
|
412
|
+
"inputs": [
|
413
|
+
{
|
414
|
+
"internalType": "UFixed",
|
415
|
+
"name": "a",
|
416
|
+
"type": "uint256"
|
417
|
+
},
|
418
|
+
{
|
419
|
+
"internalType": "UFixed",
|
420
|
+
"name": "b",
|
421
|
+
"type": "uint256"
|
422
|
+
}
|
423
|
+
],
|
424
|
+
"name": "sub",
|
425
|
+
"outputs": [
|
426
|
+
{
|
427
|
+
"internalType": "UFixed",
|
428
|
+
"name": "",
|
429
|
+
"type": "uint256"
|
430
|
+
}
|
431
|
+
],
|
432
|
+
"stateMutability": "pure",
|
433
|
+
"type": "function"
|
434
|
+
},
|
435
|
+
{
|
436
|
+
"inputs": [],
|
437
|
+
"name": "zero",
|
438
|
+
"outputs": [
|
439
|
+
{
|
440
|
+
"internalType": "UFixed",
|
441
|
+
"name": "",
|
442
|
+
"type": "uint256"
|
443
|
+
}
|
444
|
+
],
|
445
|
+
"stateMutability": "pure",
|
446
|
+
"type": "function"
|
447
|
+
}
|
448
|
+
],
|
449
|
+
"bytecode": "0x6114ad610053600b82828239805160001a607314610046577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061014c5760003560e01c8063b4773329116100c2578063d05b045211610086578063d05b045214610409578063dd45daa114610439578063ea6515c414610469578063eb646d7114610499578063f30ed598146104b7578063f70dd33e146104d55761014c565b8063b47733291461032b578063b67d77c51461035b578063bc1b392d1461038b578063c8a4ac9c146103a9578063cc8b7b73146103d95761014c565b806332148d731161011457806332148d731461020b578063753b14a51461023b578063771602f71461026b5780637a858b971461029b57806392ae8ce0146102cb578063a391c15b146102fb5761014c565b8063059f8b1614610151578063118fc88c1461016f5780631a12cd471461019f57806321e5749b146101bd578063313ce567146101ed575b600080fd5b610159610505565b6040516101669190610b6d565b60405180910390f35b61018960048036038101906101849190610bb9565b610519565b6040516101969190610c14565b60405180910390f35b6101a761052d565b6040516101b49190610c4b565b60405180910390f35b6101d760048036038101906101d29190610bb9565b610532565b6040516101e49190610c14565b60405180910390f35b6101f5610546565b6040516102029190610b6d565b60405180910390f35b61022560048036038101906102209190610bb9565b610552565b6040516102329190610c14565b60405180910390f35b61025560048036038101906102509190610c66565b610566565b6040516102629190610c14565b60405180910390f35b61028560048036038101906102809190610bb9565b610578565b6040516102929190610cce565b60405180910390f35b6102b560048036038101906102b09190610c66565b61058c565b6040516102c29190610c14565b60405180910390f35b6102e560048036038101906102e09190610d15565b61059e565b6040516102f29190610cce565b60405180910390f35b61031560048036038101906103109190610bb9565b6105c3565b6040516103229190610cce565b60405180910390f35b61034560048036038101906103409190610bb9565b6105d7565b6040516103529190610c14565b60405180910390f35b61037560048036038101906103709190610bb9565b6105eb565b6040516103829190610cce565b60405180910390f35b6103936105ff565b6040516103a09190610cce565b60405180910390f35b6103c360048036038101906103be9190610bb9565b610604565b6040516103d09190610cce565b60405180910390f35b6103f360048036038101906103ee9190610bb9565b610618565b6040516104009190610cce565b60405180910390f35b610423600480360381019061041e9190610c66565b61062c565b6040516104309190610b6d565b60405180910390f35b610453600480360381019061044e9190610d6e565b610640565b6040516104609190610cce565b60405180910390f35b610483600480360381019061047e9190610bb9565b610722565b6040516104909190610c14565b60405180910390f35b6104a1610736565b6040516104ae9190610b6d565b60405180910390f35b6104bf610756565b6040516104cc9190610e25565b60405180910390f35b6104ef60048036038101906104ea9190610e65565b61075b565b6040516104fc9190610b6d565b60405180910390f35b601260000b600a6105169190611007565b81565b6000610525838361084c565b905092915050565b601281565b600061053e8383610859565b905092915050565b6000601260ff16905090565b600061055e8383610866565b905092915050565b600061057182610873565b9050919050565b6000610584838361087f565b905092915050565b600061059782610895565b9050919050565b6000601260000b600a6105b19190611007565b826105bc9190611052565b9050919050565b60006105cf83836108a1565b905092915050565b60006105e38383610900565b905092915050565b60006105f7838361090e565b905092915050565b600090565b6000610610838361096d565b905092915050565b6000610624838361098a565b905092915050565b600061063982600261075b565b9050919050565b6000808260126106509190611094565b60000b1215610694576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068b9061114a565b60405180910390fd5b601260026106a2919061116a565b60000b8260126106b29190611094565b60000b13156106f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ed906111f3565b60405180910390fd5b8160126107039190611094565b600a61070f9190611220565b8361071a9190611052565b905092915050565b600061072e83836109bf565b905092915050565b6002601260000b600a6107499190611007565b610753919061129a565b81565b600281565b60006002808111156107705761076f610dae565b5b82600281111561078357610782610dae565b5b036107d4576107cd6002601260000b600a61079e9190611007565b6107a8919061129a565b846107b391906112cb565b6001601260000b600a6107c69190611007565b60006109cd565b9050610846565b600060028111156107e8576107e7610dae565b5b8260028111156107fb576107fa610dae565b5b036108255761081e836001601260000b600a6108179190611007565b60006109cd565b9050610846565b610843836001601260000b600a61083c9190611007565b60016109cd565b90505b92915050565b6000818310905092915050565b6000818311905092915050565b6000818314905092915050565b60008082149050919050565b6000818361088d91906112cb565b905092915050565b60008082119050919050565b60008082116108e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108dc9061134b565b60405180910390fd5b6108f883670de0b6b3a764000084610a43565b905092915050565b600081831015905092915050565b600061091a8383610900565b610959576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610950906113b7565b60405180910390fd5b818361096591906113d7565b905092915050565b60006109828383670de0b6b3a7640000610a43565b905092915050565b60006109968383610859565b156109ac576109a5838361090e565b90506109b9565b6109b6828461090e565b90505b92915050565b600081831115905092915050565b6000806109db868686610a43565b9050600160028111156109f1576109f0610dae565b5b836002811115610a0457610a03610dae565b5b148015610a22575060008480610a1d57610a1c61126b565b5b868809115b15610a3757600181610a3491906112cb565b90505b80915050949350505050565b6000806000801985870985870292508281108382030391505060008103610a7e57838281610a7457610a7361126b565b5b0492505050610b4d565b808411610ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab790611457565b60405180910390fd5b60008486880990508281118203915080830392506000600186190186169050808604955080840493506001818260000304019050808302841793506000600287600302189050808702600203810290508087026002038102905080870260020381029050808702600203810290508087026002038102905080870260020381029050808502955050505050505b9392505050565b6000819050919050565b610b6781610b54565b82525050565b6000602082019050610b826000830184610b5e565b92915050565b600080fd5b610b9681610b54565b8114610ba157600080fd5b50565b600081359050610bb381610b8d565b92915050565b60008060408385031215610bd057610bcf610b88565b5b6000610bde85828601610ba4565b9250506020610bef85828601610ba4565b9150509250929050565b60008115159050919050565b610c0e81610bf9565b82525050565b6000602082019050610c296000830184610c05565b92915050565b60008160000b9050919050565b610c4581610c2f565b82525050565b6000602082019050610c606000830184610c3c565b92915050565b600060208284031215610c7c57610c7b610b88565b5b6000610c8a84828501610ba4565b91505092915050565b6000819050919050565b6000610cb8610cb3610cae84610b54565b610c93565b610b54565b9050919050565b610cc881610c9d565b82525050565b6000602082019050610ce36000830184610cbf565b92915050565b610cf281610b54565b8114610cfd57600080fd5b50565b600081359050610d0f81610ce9565b92915050565b600060208284031215610d2b57610d2a610b88565b5b6000610d3984828501610d00565b91505092915050565b610d4b81610c2f565b8114610d5657600080fd5b50565b600081359050610d6881610d42565b92915050565b60008060408385031215610d8557610d84610b88565b5b6000610d9385828601610d00565b9250506020610da485828601610d59565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60038110610dee57610ded610dae565b5b50565b6000819050610dff82610ddd565b919050565b6000610e0f82610df1565b9050919050565b610e1f81610e04565b82525050565b6000602082019050610e3a6000830184610e16565b92915050565b60038110610e4d57600080fd5b50565b600081359050610e5f81610e40565b92915050565b60008060408385031215610e7c57610e7b610b88565b5b6000610e8a85828601610ba4565b9250506020610e9b85828601610e50565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115610f2b57808604811115610f0757610f06610ea5565b5b6001851615610f165780820291505b8081029050610f2485610ed4565b9450610eeb565b94509492505050565b600082610f445760019050611000565b81610f525760009050611000565b8160018114610f685760028114610f7257610fa1565b6001915050611000565b60ff841115610f8457610f83610ea5565b5b8360020a915084821115610f9b57610f9a610ea5565b5b50611000565b5060208310610133831016604e8410600b8410161715610fd65782820a905083811115610fd157610fd0610ea5565b5b611000565b610fe38484846001610ee1565b92509050818404811115610ffa57610ff9610ea5565b5b81810290505b9392505050565b600061101282610b54565b915061101d83610b54565b925061104a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484610f34565b905092915050565b600061105d82610b54565b915061106883610b54565b925082820261107681610b54565b9150828204841483151761108d5761108c610ea5565b5b5092915050565b600061109f82610c2f565b91506110aa83610c2f565b925082820190507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808112607f821317156110e7576110e6610ea5565b5b92915050565b600082825260208201905092915050565b7f4552524f523a464d2d3031303a4558504f4e454e545f544f4f5f534d414c4c00600082015250565b6000611134601f836110ed565b915061113f826110fe565b602082019050919050565b6000602082019050818103600083015261116381611127565b9050919050565b600061117582610c2f565b915061118083610c2f565b925082820261118e81610c2f565b91508082146111a05761119f610ea5565b5b5092915050565b7f4552524f523a464d2d3031313a4558504f4e454e545f544f4f5f4c4152474500600082015250565b60006111dd601f836110ed565b91506111e8826111a7565b602082019050919050565b6000602082019050818103600083015261120c816111d0565b9050919050565b600060ff82169050919050565b600061122b82610b54565b915061123683611213565b92506112637fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484610f34565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006112a582610b54565b91506112b083610b54565b9250826112c0576112bf61126b565b5b828204905092915050565b60006112d682610b54565b91506112e183610b54565b92508282019050808211156112f9576112f8610ea5565b5b92915050565b7f4552524f523a55464d2d3032303a44495649534f525f5a45524f000000000000600082015250565b6000611335601a836110ed565b9150611340826112ff565b602082019050919050565b6000602082019050818103600083015261136481611328565b9050919050565b7f4552524f523a55464d2d3031303a4e454741544956455f524553554c54000000600082015250565b60006113a1601d836110ed565b91506113ac8261136b565b602082019050919050565b600060208201905081810360008301526113d081611394565b9050919050565b60006113e282610b54565b91506113ed83610b54565b925082820390508181111561140557611404610ea5565b5b92915050565b7f4d6174683a206d756c446976206f766572666c6f770000000000000000000000600082015250565b60006114416015836110ed565b915061144c8261140b565b602082019050919050565b6000602082019050818103600083015261147081611434565b905091905056fea26469706673582212204204643d1e4cced1728bd12b695f144bc7387e11c075a03f726d8c29ed692d7864736f6c63430008140033",
|
450
|
+
"deployedBytecode": "0x730000000000000000000000000000000000000000301460806040526004361061014c5760003560e01c8063b4773329116100c2578063d05b045211610086578063d05b045214610409578063dd45daa114610439578063ea6515c414610469578063eb646d7114610499578063f30ed598146104b7578063f70dd33e146104d55761014c565b8063b47733291461032b578063b67d77c51461035b578063bc1b392d1461038b578063c8a4ac9c146103a9578063cc8b7b73146103d95761014c565b806332148d731161011457806332148d731461020b578063753b14a51461023b578063771602f71461026b5780637a858b971461029b57806392ae8ce0146102cb578063a391c15b146102fb5761014c565b8063059f8b1614610151578063118fc88c1461016f5780631a12cd471461019f57806321e5749b146101bd578063313ce567146101ed575b600080fd5b610159610505565b6040516101669190610b6d565b60405180910390f35b61018960048036038101906101849190610bb9565b610519565b6040516101969190610c14565b60405180910390f35b6101a761052d565b6040516101b49190610c4b565b60405180910390f35b6101d760048036038101906101d29190610bb9565b610532565b6040516101e49190610c14565b60405180910390f35b6101f5610546565b6040516102029190610b6d565b60405180910390f35b61022560048036038101906102209190610bb9565b610552565b6040516102329190610c14565b60405180910390f35b61025560048036038101906102509190610c66565b610566565b6040516102629190610c14565b60405180910390f35b61028560048036038101906102809190610bb9565b610578565b6040516102929190610cce565b60405180910390f35b6102b560048036038101906102b09190610c66565b61058c565b6040516102c29190610c14565b60405180910390f35b6102e560048036038101906102e09190610d15565b61059e565b6040516102f29190610cce565b60405180910390f35b61031560048036038101906103109190610bb9565b6105c3565b6040516103229190610cce565b60405180910390f35b61034560048036038101906103409190610bb9565b6105d7565b6040516103529190610c14565b60405180910390f35b61037560048036038101906103709190610bb9565b6105eb565b6040516103829190610cce565b60405180910390f35b6103936105ff565b6040516103a09190610cce565b60405180910390f35b6103c360048036038101906103be9190610bb9565b610604565b6040516103d09190610cce565b60405180910390f35b6103f360048036038101906103ee9190610bb9565b610618565b6040516104009190610cce565b60405180910390f35b610423600480360381019061041e9190610c66565b61062c565b6040516104309190610b6d565b60405180910390f35b610453600480360381019061044e9190610d6e565b610640565b6040516104609190610cce565b60405180910390f35b610483600480360381019061047e9190610bb9565b610722565b6040516104909190610c14565b60405180910390f35b6104a1610736565b6040516104ae9190610b6d565b60405180910390f35b6104bf610756565b6040516104cc9190610e25565b60405180910390f35b6104ef60048036038101906104ea9190610e65565b61075b565b6040516104fc9190610b6d565b60405180910390f35b601260000b600a6105169190611007565b81565b6000610525838361084c565b905092915050565b601281565b600061053e8383610859565b905092915050565b6000601260ff16905090565b600061055e8383610866565b905092915050565b600061057182610873565b9050919050565b6000610584838361087f565b905092915050565b600061059782610895565b9050919050565b6000601260000b600a6105b19190611007565b826105bc9190611052565b9050919050565b60006105cf83836108a1565b905092915050565b60006105e38383610900565b905092915050565b60006105f7838361090e565b905092915050565b600090565b6000610610838361096d565b905092915050565b6000610624838361098a565b905092915050565b600061063982600261075b565b9050919050565b6000808260126106509190611094565b60000b1215610694576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068b9061114a565b60405180910390fd5b601260026106a2919061116a565b60000b8260126106b29190611094565b60000b13156106f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ed906111f3565b60405180910390fd5b8160126107039190611094565b600a61070f9190611220565b8361071a9190611052565b905092915050565b600061072e83836109bf565b905092915050565b6002601260000b600a6107499190611007565b610753919061129a565b81565b600281565b60006002808111156107705761076f610dae565b5b82600281111561078357610782610dae565b5b036107d4576107cd6002601260000b600a61079e9190611007565b6107a8919061129a565b846107b391906112cb565b6001601260000b600a6107c69190611007565b60006109cd565b9050610846565b600060028111156107e8576107e7610dae565b5b8260028111156107fb576107fa610dae565b5b036108255761081e836001601260000b600a6108179190611007565b60006109cd565b9050610846565b610843836001601260000b600a61083c9190611007565b60016109cd565b90505b92915050565b6000818310905092915050565b6000818311905092915050565b6000818314905092915050565b60008082149050919050565b6000818361088d91906112cb565b905092915050565b60008082119050919050565b60008082116108e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108dc9061134b565b60405180910390fd5b6108f883670de0b6b3a764000084610a43565b905092915050565b600081831015905092915050565b600061091a8383610900565b610959576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610950906113b7565b60405180910390fd5b818361096591906113d7565b905092915050565b60006109828383670de0b6b3a7640000610a43565b905092915050565b60006109968383610859565b156109ac576109a5838361090e565b90506109b9565b6109b6828461090e565b90505b92915050565b600081831115905092915050565b6000806109db868686610a43565b9050600160028111156109f1576109f0610dae565b5b836002811115610a0457610a03610dae565b5b148015610a22575060008480610a1d57610a1c61126b565b5b868809115b15610a3757600181610a3491906112cb565b90505b80915050949350505050565b6000806000801985870985870292508281108382030391505060008103610a7e57838281610a7457610a7361126b565b5b0492505050610b4d565b808411610ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab790611457565b60405180910390fd5b60008486880990508281118203915080830392506000600186190186169050808604955080840493506001818260000304019050808302841793506000600287600302189050808702600203810290508087026002038102905080870260020381029050808702600203810290508087026002038102905080870260020381029050808502955050505050505b9392505050565b6000819050919050565b610b6781610b54565b82525050565b6000602082019050610b826000830184610b5e565b92915050565b600080fd5b610b9681610b54565b8114610ba157600080fd5b50565b600081359050610bb381610b8d565b92915050565b60008060408385031215610bd057610bcf610b88565b5b6000610bde85828601610ba4565b9250506020610bef85828601610ba4565b9150509250929050565b60008115159050919050565b610c0e81610bf9565b82525050565b6000602082019050610c296000830184610c05565b92915050565b60008160000b9050919050565b610c4581610c2f565b82525050565b6000602082019050610c606000830184610c3c565b92915050565b600060208284031215610c7c57610c7b610b88565b5b6000610c8a84828501610ba4565b91505092915050565b6000819050919050565b6000610cb8610cb3610cae84610b54565b610c93565b610b54565b9050919050565b610cc881610c9d565b82525050565b6000602082019050610ce36000830184610cbf565b92915050565b610cf281610b54565b8114610cfd57600080fd5b50565b600081359050610d0f81610ce9565b92915050565b600060208284031215610d2b57610d2a610b88565b5b6000610d3984828501610d00565b91505092915050565b610d4b81610c2f565b8114610d5657600080fd5b50565b600081359050610d6881610d42565b92915050565b60008060408385031215610d8557610d84610b88565b5b6000610d9385828601610d00565b9250506020610da485828601610d59565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60038110610dee57610ded610dae565b5b50565b6000819050610dff82610ddd565b919050565b6000610e0f82610df1565b9050919050565b610e1f81610e04565b82525050565b6000602082019050610e3a6000830184610e16565b92915050565b60038110610e4d57600080fd5b50565b600081359050610e5f81610e40565b92915050565b60008060408385031215610e7c57610e7b610b88565b5b6000610e8a85828601610ba4565b9250506020610e9b85828601610e50565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115610f2b57808604811115610f0757610f06610ea5565b5b6001851615610f165780820291505b8081029050610f2485610ed4565b9450610eeb565b94509492505050565b600082610f445760019050611000565b81610f525760009050611000565b8160018114610f685760028114610f7257610fa1565b6001915050611000565b60ff841115610f8457610f83610ea5565b5b8360020a915084821115610f9b57610f9a610ea5565b5b50611000565b5060208310610133831016604e8410600b8410161715610fd65782820a905083811115610fd157610fd0610ea5565b5b611000565b610fe38484846001610ee1565b92509050818404811115610ffa57610ff9610ea5565b5b81810290505b9392505050565b600061101282610b54565b915061101d83610b54565b925061104a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484610f34565b905092915050565b600061105d82610b54565b915061106883610b54565b925082820261107681610b54565b9150828204841483151761108d5761108c610ea5565b5b5092915050565b600061109f82610c2f565b91506110aa83610c2f565b925082820190507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808112607f821317156110e7576110e6610ea5565b5b92915050565b600082825260208201905092915050565b7f4552524f523a464d2d3031303a4558504f4e454e545f544f4f5f534d414c4c00600082015250565b6000611134601f836110ed565b915061113f826110fe565b602082019050919050565b6000602082019050818103600083015261116381611127565b9050919050565b600061117582610c2f565b915061118083610c2f565b925082820261118e81610c2f565b91508082146111a05761119f610ea5565b5b5092915050565b7f4552524f523a464d2d3031313a4558504f4e454e545f544f4f5f4c4152474500600082015250565b60006111dd601f836110ed565b91506111e8826111a7565b602082019050919050565b6000602082019050818103600083015261120c816111d0565b9050919050565b600060ff82169050919050565b600061122b82610b54565b915061123683611213565b92506112637fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484610f34565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006112a582610b54565b91506112b083610b54565b9250826112c0576112bf61126b565b5b828204905092915050565b60006112d682610b54565b91506112e183610b54565b92508282019050808211156112f9576112f8610ea5565b5b92915050565b7f4552524f523a55464d2d3032303a44495649534f525f5a45524f000000000000600082015250565b6000611335601a836110ed565b9150611340826112ff565b602082019050919050565b6000602082019050818103600083015261136481611328565b9050919050565b7f4552524f523a55464d2d3031303a4e454741544956455f524553554c54000000600082015250565b60006113a1601d836110ed565b91506113ac8261136b565b602082019050919050565b600060208201905081810360008301526113d081611394565b9050919050565b60006113e282610b54565b91506113ed83610b54565b925082820390508181111561140557611404610ea5565b5b92915050565b7f4d6174683a206d756c446976206f766572666c6f770000000000000000000000600082015250565b60006114416015836110ed565b915061144c8261140b565b602082019050919050565b6000602082019050818103600083015261147081611434565b905091905056fea26469706673582212204204643d1e4cced1728bd12b695f144bc7387e11c075a03f726d8c29ed692d7864736f6c63430008140033",
|
451
|
+
"linkReferences": {},
|
452
|
+
"deployedLinkReferences": {}
|
453
|
+
}
|
@@ -6,7 +6,7 @@ import {Registerable} from "../registry/Registry.sol";
|
|
6
6
|
import {IInstance} from "../instance/IInstance.sol";
|
7
7
|
|
8
8
|
import {IInstanceLinked, IComponent, IComponentContract, IComponentModule, IComponentOwnerService} from "../instance/component/IComponent.sol";
|
9
|
-
|
9
|
+
import {NftId} from "../types/NftId.sol";
|
10
10
|
|
11
11
|
contract InstanceLinked is
|
12
12
|
IInstanceLinked
|
@@ -45,7 +45,7 @@ abstract contract Component is
|
|
45
45
|
function register()
|
46
46
|
public
|
47
47
|
override
|
48
|
-
returns(
|
48
|
+
returns(NftId componentId)
|
49
49
|
{
|
50
50
|
require(msg.sender == getInitialOwner(), "");
|
51
51
|
require(address(_registry) != address(0), "ERROR:PRD-001:REGISTRY_ZERO");
|
@@ -56,7 +56,7 @@ abstract contract Component is
|
|
56
56
|
}
|
57
57
|
|
58
58
|
// from registerable
|
59
|
-
function getParentNftId() public view override returns(
|
59
|
+
function getParentNftId() public view override returns(NftId) {
|
60
60
|
return getInstance().getNftId();
|
61
61
|
}
|
62
62
|
}
|
@@ -2,10 +2,11 @@
|
|
2
2
|
pragma solidity ^0.8.19;
|
3
3
|
|
4
4
|
import {IComponentContract} from "../instance/component/IComponent.sol";
|
5
|
+
import {NftId} from "../types/NftId.sol";
|
5
6
|
|
6
7
|
interface IProductComponent is
|
7
8
|
IComponentContract
|
8
9
|
{
|
9
10
|
|
10
|
-
function getPoolNftId() external view returns(
|
11
|
+
function getPoolNftId() external view returns(NftId poolNftId);
|
11
12
|
}
|
@@ -4,6 +4,7 @@ pragma solidity ^0.8.19;
|
|
4
4
|
import {IProductService} from "../instance/product/IProductService.sol";
|
5
5
|
import {Component} from "./Component.sol";
|
6
6
|
import {IProductComponent} from "./IProduct.sol";
|
7
|
+
import {NftId} from "../types/NftId.sol";
|
7
8
|
|
8
9
|
|
9
10
|
contract Product is
|
@@ -29,10 +30,10 @@ contract Product is
|
|
29
30
|
uint256 sumInsuredAmount,
|
30
31
|
uint256 premiumAmount,
|
31
32
|
uint256 lifetime,
|
32
|
-
|
33
|
+
NftId bundleNftId
|
33
34
|
)
|
34
35
|
internal
|
35
|
-
returns(
|
36
|
+
returns(NftId nftId)
|
36
37
|
{
|
37
38
|
nftId = _productService.createApplication(
|
38
39
|
applicationOwner,
|
@@ -43,13 +44,13 @@ contract Product is
|
|
43
44
|
);
|
44
45
|
}
|
45
46
|
|
46
|
-
function _underwrite(
|
47
|
+
function _underwrite(NftId nftId)
|
47
48
|
internal
|
48
49
|
{
|
49
50
|
_productService.underwrite(nftId);
|
50
51
|
}
|
51
52
|
|
52
|
-
function getPoolNftId() external view override returns(
|
53
|
+
function getPoolNftId() external view override returns(NftId poolNftId) {
|
53
54
|
return _registry.getNftId(_pool);
|
54
55
|
}
|
55
56
|
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
2
|
+
pragma solidity ^0.8.19;
|
3
|
+
|
4
|
+
contract Require {
|
5
|
+
|
6
|
+
error AsmallerThanB_S();
|
7
|
+
error AsmallerThanB_M(uint a);
|
8
|
+
error AsmallerThanB_L(uint a, uint b);
|
9
|
+
|
10
|
+
uint256 private _b;
|
11
|
+
|
12
|
+
constructor() {
|
13
|
+
_b = 42;
|
14
|
+
}
|
15
|
+
|
16
|
+
function isAlargerThanBRequire_S(uint a) external view returns(bool isLarger) {
|
17
|
+
require(a > _b, "ERROR:ABC-001");
|
18
|
+
|
19
|
+
return true;
|
20
|
+
}
|
21
|
+
|
22
|
+
function isAlargerThanBRequire_M(uint a) external view returns(bool isLarger) {
|
23
|
+
require(a > _b, "ERROR:ABC-002:A_IS_SMALLER");
|
24
|
+
|
25
|
+
return true;
|
26
|
+
}
|
27
|
+
|
28
|
+
function isAlargerThanBRequire_L(uint a) external view returns(bool isLarger) {
|
29
|
+
require(a > _b, "ERROR:ABC-003:A_IS_SMALLER_THAN_B");
|
30
|
+
|
31
|
+
return true;
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
2
|
+
pragma solidity ^0.8.19;
|
3
|
+
|
4
|
+
contract Revert {
|
5
|
+
|
6
|
+
error AsmallerThanB_S();
|
7
|
+
error AsmallerThanB_M(uint a);
|
8
|
+
error AsmallerThanB_L(uint a, uint b);
|
9
|
+
|
10
|
+
uint256 private _b;
|
11
|
+
|
12
|
+
constructor() {
|
13
|
+
_b = 42;
|
14
|
+
}
|
15
|
+
|
16
|
+
function isAlargerThanBRevert_S(uint a) external view returns(bool isLarger) {
|
17
|
+
if(a <= _b) {
|
18
|
+
revert AsmallerThanB_S();
|
19
|
+
}
|
20
|
+
|
21
|
+
return true;
|
22
|
+
}
|
23
|
+
|
24
|
+
function isAlargerThanBRevert_M(uint a) external view returns(bool isLarger) {
|
25
|
+
if(a <= _b) {
|
26
|
+
revert AsmallerThanB_M(a);
|
27
|
+
}
|
28
|
+
|
29
|
+
return true;
|
30
|
+
}
|
31
|
+
|
32
|
+
function isAlargerThanBRevert_L(uint a) external view returns(bool isLarger) {
|
33
|
+
if(a <= _b) {
|
34
|
+
revert AsmallerThanB_L(a, _b);
|
35
|
+
}
|
36
|
+
|
37
|
+
return true;
|
38
|
+
}
|
39
|
+
}
|
@@ -15,7 +15,7 @@ abstract contract B is ISharedA, IB {
|
|
15
15
|
|
16
16
|
// access own state
|
17
17
|
function getB() external view override returns(uint256) { return _x; }
|
18
|
-
function setB(uint256
|
18
|
+
function setB(uint256 newB) external override { _x = newB; }
|
19
19
|
|
20
20
|
// access state from parent contract A
|
21
21
|
function getAfromB() external view override returns(uint256) { return this.getA(); }
|
@@ -15,7 +15,7 @@ abstract contract C is ISharedA, IC {
|
|
15
15
|
|
16
16
|
// access own state
|
17
17
|
function getC() external view override returns(uint256) { return _x; }
|
18
|
-
function setC(uint256
|
18
|
+
function setC(uint256 newC) external override { _x = newC; }
|
19
19
|
|
20
20
|
// access state from parent contract A
|
21
21
|
function getAfromC() external view override returns(uint256) { return this.getA(); }
|