Skip to content

Commit f503ff1

Browse files
authored
Merge pull request #112 from laminar-protocol/deploy-kovan
Deploy to Kovan
2 parents d242b5e + 0b05689 commit f503ff1

File tree

11 files changed

+876
-404
lines changed

11 files changed

+876
-404
lines changed

artifacts/kovan/abi/MarginFlowProtocol.json

Lines changed: 353 additions & 156 deletions
Large diffs are not rendered by default.

artifacts/kovan/abi/MarginFlowProtocolConfig.json

Lines changed: 100 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,20 @@
5050
"internalType": "address",
5151
"name": "",
5252
"type": "address"
53-
},
54-
{
55-
"internalType": "enum MarginFlowProtocolConfig.PositionType",
56-
"name": "",
57-
"type": "uint8"
5853
}
5954
],
60-
"name": "currentSwapRates",
55+
"name": "currentSwapUnits",
6156
"outputs": [
6257
{
63-
"internalType": "int256",
64-
"name": "value",
65-
"type": "int256"
58+
"internalType": "uint256",
59+
"name": "",
60+
"type": "uint256"
6661
}
6762
],
6863
"stateMutability": "view",
6964
"type": "function",
7065
"constant": true,
71-
"signature": "0xf98c25f7"
66+
"signature": "0x97e2d2de"
7267
},
7368
{
7469
"inputs": [],
@@ -147,7 +142,7 @@
147142
},
148143
{
149144
"inputs": [],
150-
"name": "maxLeverage",
145+
"name": "maxSpread",
151146
"outputs": [
152147
{
153148
"internalType": "uint256",
@@ -158,26 +153,26 @@
158153
"stateMutability": "view",
159154
"type": "function",
160155
"constant": true,
161-
"signature": "0xae3302c2"
156+
"signature": "0x796e8f90"
162157
},
163158
{
164159
"inputs": [],
165-
"name": "maxSpread",
160+
"name": "owner",
166161
"outputs": [
167162
{
168-
"internalType": "uint256",
163+
"internalType": "address",
169164
"name": "",
170-
"type": "uint256"
165+
"type": "address"
171166
}
172167
],
173168
"stateMutability": "view",
174169
"type": "function",
175170
"constant": true,
176-
"signature": "0x796e8f90"
171+
"signature": "0x8da5cb5b"
177172
},
178173
{
179174
"inputs": [],
180-
"name": "minLeverage",
175+
"name": "poolLiquidationDeposit",
181176
"outputs": [
182177
{
183178
"internalType": "uint256",
@@ -188,11 +183,11 @@
188183
"stateMutability": "view",
189184
"type": "function",
190185
"constant": true,
191-
"signature": "0x20f6f76f"
186+
"signature": "0x25f0f890"
192187
},
193188
{
194189
"inputs": [],
195-
"name": "minLeverageAmount",
190+
"name": "poolMarginCallDeposit",
196191
"outputs": [
197192
{
198193
"internalType": "uint256",
@@ -203,34 +198,34 @@
203198
"stateMutability": "view",
204199
"type": "function",
205200
"constant": true,
206-
"signature": "0xd2f12905"
201+
"signature": "0x40684a4a"
207202
},
208203
{
209204
"inputs": [],
210-
"name": "owner",
205+
"name": "renounceOwnership",
206+
"outputs": [],
207+
"stateMutability": "nonpayable",
208+
"type": "function",
209+
"signature": "0x715018a6"
210+
},
211+
{
212+
"inputs": [],
213+
"name": "traderLiquidationDeposit",
211214
"outputs": [
212215
{
213-
"internalType": "address",
216+
"internalType": "uint256",
214217
"name": "",
215-
"type": "address"
218+
"type": "uint256"
216219
}
217220
],
218221
"stateMutability": "view",
219222
"type": "function",
220223
"constant": true,
221-
"signature": "0x8da5cb5b"
224+
"signature": "0x94b803fe"
222225
},
223226
{
224227
"inputs": [],
225-
"name": "renounceOwnership",
226-
"outputs": [],
227-
"stateMutability": "nonpayable",
228-
"type": "function",
229-
"signature": "0x715018a6"
230-
},
231-
{
232-
"inputs": [],
233-
"name": "swapRateUnit",
228+
"name": "traderMarginCallDeposit",
234229
"outputs": [
235230
{
236231
"internalType": "uint256",
@@ -241,7 +236,7 @@
241236
"stateMutability": "view",
242237
"type": "function",
243238
"constant": true,
244-
"signature": "0x63829e9d"
239+
"signature": "0xe9488735"
245240
},
246241
{
247242
"inputs": [],
@@ -313,47 +308,13 @@
313308
"type": "function",
314309
"signature": "0xf2fde38b"
315310
},
316-
{
317-
"inputs": [
318-
{
319-
"internalType": "address",
320-
"name": "sender",
321-
"type": "address"
322-
}
323-
],
324-
"name": "initialize",
325-
"outputs": [],
326-
"stateMutability": "nonpayable",
327-
"type": "function",
328-
"signature": "0xc4d66de8"
329-
},
330311
{
331312
"inputs": [
332313
{
333314
"internalType": "uint256",
334315
"name": "_maxSpread",
335316
"type": "uint256"
336317
},
337-
{
338-
"internalType": "uint256",
339-
"name": "_initialMinLeverage",
340-
"type": "uint256"
341-
},
342-
{
343-
"internalType": "uint256",
344-
"name": "_initialMaxLeverage",
345-
"type": "uint256"
346-
},
347-
{
348-
"internalType": "uint256",
349-
"name": "_initialMinLeverageAmount",
350-
"type": "uint256"
351-
},
352-
{
353-
"internalType": "uint256",
354-
"name": "_swapRateUnit",
355-
"type": "uint256"
356-
},
357318
{
358319
"internalType": "uint256",
359320
"name": "_initialTraderRiskMarginCallThreshold",
@@ -389,7 +350,21 @@
389350
"outputs": [],
390351
"stateMutability": "nonpayable",
391352
"type": "function",
392-
"signature": "0xcc841348"
353+
"signature": "0xb6610ace"
354+
},
355+
{
356+
"inputs": [
357+
{
358+
"internalType": "address",
359+
"name": "sender",
360+
"type": "address"
361+
}
362+
],
363+
"name": "initialize",
364+
"outputs": [],
365+
"stateMutability": "nonpayable",
366+
"type": "function",
367+
"signature": "0xc4d66de8"
393368
},
394369
{
395370
"inputs": [
@@ -420,48 +395,6 @@
420395
"type": "function",
421396
"signature": "0xcb03f48a"
422397
},
423-
{
424-
"inputs": [
425-
{
426-
"internalType": "uint256",
427-
"name": "_newMinLeverage",
428-
"type": "uint256"
429-
}
430-
],
431-
"name": "setMinLeverage",
432-
"outputs": [],
433-
"stateMutability": "nonpayable",
434-
"type": "function",
435-
"signature": "0xa5489297"
436-
},
437-
{
438-
"inputs": [
439-
{
440-
"internalType": "uint256",
441-
"name": "_newMaxLeverage",
442-
"type": "uint256"
443-
}
444-
],
445-
"name": "setMaxLeverage",
446-
"outputs": [],
447-
"stateMutability": "nonpayable",
448-
"type": "function",
449-
"signature": "0xd3127e63"
450-
},
451-
{
452-
"inputs": [
453-
{
454-
"internalType": "uint256",
455-
"name": "_newMinLeverageAmount",
456-
"type": "uint256"
457-
}
458-
],
459-
"name": "setMinLeverageAmount",
460-
"outputs": [],
461-
"stateMutability": "nonpayable",
462-
"type": "function",
463-
"signature": "0x8eeca6b9"
464-
},
465398
{
466399
"inputs": [
467400
{
@@ -488,6 +421,11 @@
488421
"name": "_quote",
489422
"type": "address"
490423
},
424+
{
425+
"internalType": "uint256",
426+
"name": "_swapUnit",
427+
"type": "uint256"
428+
},
491429
{
492430
"internalType": "int256",
493431
"name": "_swapRateLong",
@@ -503,7 +441,7 @@
503441
"outputs": [],
504442
"stateMutability": "nonpayable",
505443
"type": "function",
506-
"signature": "0x99b713c1"
444+
"signature": "0x2144fb42"
507445
},
508446
{
509447
"inputs": [
@@ -615,5 +553,55 @@
615553
"type": "function",
616554
"constant": true,
617555
"signature": "0xcd2ce4ae"
556+
},
557+
{
558+
"inputs": [
559+
{
560+
"internalType": "contract MarginLiquidityPoolInterface",
561+
"name": "_pool",
562+
"type": "address"
563+
},
564+
{
565+
"components": [
566+
{
567+
"internalType": "address",
568+
"name": "base",
569+
"type": "address"
570+
},
571+
{
572+
"internalType": "address",
573+
"name": "quote",
574+
"type": "address"
575+
}
576+
],
577+
"internalType": "struct MarginFlowProtocol.TradingPair",
578+
"name": "_pair",
579+
"type": "tuple"
580+
},
581+
{
582+
"internalType": "enum MarginFlowProtocolConfig.PositionType",
583+
"name": "_type",
584+
"type": "uint8"
585+
}
586+
],
587+
"name": "getCurrentTotalSwapRateForPoolAndPair",
588+
"outputs": [
589+
{
590+
"components": [
591+
{
592+
"internalType": "int256",
593+
"name": "value",
594+
"type": "int256"
595+
}
596+
],
597+
"internalType": "struct Percentage.SignedPercent",
598+
"name": "",
599+
"type": "tuple"
600+
}
601+
],
602+
"stateMutability": "view",
603+
"type": "function",
604+
"constant": true,
605+
"signature": "0xee65fad9"
618606
}
619607
]

0 commit comments

Comments
 (0)