Skip to content

Commit

Permalink
v6.2.7
Browse files Browse the repository at this point in the history
v6.2.7
  • Loading branch information
platschi authored Apr 6, 2023
2 parents fb49870 + 769c6cf commit 4b94393
Show file tree
Hide file tree
Showing 50 changed files with 5,054 additions and 601 deletions.
2 changes: 1 addition & 1 deletion sdk/constants/futures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const DEFAULT_NUMBER_OF_TRADES = 16;
export const FUTURES_ENDPOINT_OP_MAINNET = `https://subgraph.satsuma-prod.com/${process.env.NEXT_PUBLIC_SATSUMA_API_KEY}/kwenta/optimism-perps/api`;

export const FUTURES_ENDPOINT_OP_GOERLI =
'https://api.thegraph.com/subgraphs/name/tburm/optimism-goerli-perps';
'https://api.thegraph.com/subgraphs/name/kwenta/optimism-goerli-perps';

export const MAIN_ENDPOINT_MAINNET = `https://gateway.thegraph.com/api/${process.env.NEXT_PUBLIC_THEGRAPH_API_KEY}/subgraphs/id/HLy7PdmPJuVGjjmPNz1vW5RCCRpqzRWony2fSn7UKpf9`;

Expand Down
210 changes: 198 additions & 12 deletions sdk/contracts/abis/PerpsV2Market.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,37 @@
"name": "PerpsTracking",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "flagger",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"name": "PositionFlagged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -238,7 +269,19 @@
{
"indexed": false,
"internalType": "uint256",
"name": "fee",
"name": "flaggerFee",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "liquidatorFee",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "stakersFee",
"type": "uint256"
}
],
Expand Down Expand Up @@ -295,6 +338,12 @@
"internalType": "uint256",
"name": "fee",
"type": "uint256"
},
{
"indexed": false,
"internalType": "int256",
"name": "skew",
"type": "int256"
}
],
"name": "PositionModified",
Expand Down Expand Up @@ -443,7 +492,7 @@
"inputs": [
{
"internalType": "uint256",
"name": "priceImpactDelta",
"name": "desiredFillPrice",
"type": "uint256"
}
],
Expand All @@ -458,7 +507,7 @@
"inputs": [
{
"internalType": "uint256",
"name": "priceImpactDelta",
"name": "desiredFillPrice",
"type": "uint256"
},
{
Expand Down Expand Up @@ -528,7 +577,7 @@
},
{
"internalType": "uint128",
"name": "priceImpactDelta",
"name": "desiredFillPrice",
"type": "uint128"
},
{
Expand Down Expand Up @@ -606,6 +655,62 @@
"stateMutability": "payable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "int256",
"name": "sizeDelta",
"type": "int256"
}
],
"name": "fillPrice",
"outputs": [
{
"internalType": "uint256",
"name": "price",
"type": "uint256"
},
{
"internalType": "bool",
"name": "invalid",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "flagPosition",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "forceLiquidatePosition",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
Expand All @@ -621,6 +726,21 @@
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "fundingRateLastRecomputed",
"outputs": [
{
"internalType": "int128",
"name": "fundingRate",
"type": "int128"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
Expand Down Expand Up @@ -657,6 +777,27 @@
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "isFlagged",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
Expand Down Expand Up @@ -814,7 +955,7 @@
},
{
"internalType": "uint256",
"name": "priceImpactDelta",
"name": "desiredFillPrice",
"type": "uint256"
}
],
Expand All @@ -834,7 +975,7 @@
},
{
"internalType": "uint256",
"name": "priceImpactDelta",
"name": "desiredFillPrice",
"type": "uint256"
},
{
Expand Down Expand Up @@ -1082,6 +1223,51 @@
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "desiredTimeDelta",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "desiredFillPrice",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "trackingCode",
"type": "bytes32"
}
],
"name": "submitCloseDelayedOrderWithTracking",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "desiredFillPrice",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "trackingCode",
"type": "bytes32"
}
],
"name": "submitCloseOffchainDelayedOrderWithTracking",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
Expand All @@ -1092,12 +1278,12 @@
},
{
"internalType": "uint256",
"name": "priceImpactDelta",
"name": "desiredTimeDelta",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "desiredTimeDelta",
"name": "desiredFillPrice",
"type": "uint256"
}
],
Expand All @@ -1117,12 +1303,12 @@
},
{
"internalType": "uint256",
"name": "priceImpactDelta",
"name": "desiredTimeDelta",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "desiredTimeDelta",
"name": "desiredFillPrice",
"type": "uint256"
},
{
Expand All @@ -1147,7 +1333,7 @@
},
{
"internalType": "uint256",
"name": "priceImpactDelta",
"name": "desiredFillPrice",
"type": "uint256"
}
],
Expand All @@ -1167,7 +1353,7 @@
},
{
"internalType": "uint256",
"name": "priceImpactDelta",
"name": "desiredFillPrice",
"type": "uint256"
},
{
Expand Down
Loading

1 comment on commit 4b94393

@vercel
Copy link

@vercel vercel bot commented on 4b94393 Apr 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kwenta – ./

kwenta-git-perps-v2-kwenta.vercel.app
kwenta-kwenta.vercel.app
dev.kwenta.io
kwenta.io

Please sign in to comment.