Skip to content

Commit

Permalink
update base sepolia (#39)
Browse files Browse the repository at this point in the history
* update contract addresses

* version bump
  • Loading branch information
Tburm authored Apr 8, 2024
1 parent 3f03e9a commit 1e5117d
Show file tree
Hide file tree
Showing 9 changed files with 237 additions and 32 deletions.
2 changes: 1 addition & 1 deletion src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="synthetix",
version="0.1.5",
version="0.1.6",
description="Synthetix protocol SDK",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "0xa88694d0025dd96194D1B0237fDEbf7D1D34B02F",
"address": "0x9EB560Cc26c2766929A41F8e46E87bd4b8b145d9",
"abi": [
{
"inputs": [
Expand Down
14 changes: 1 addition & 13 deletions src/synthetix/contracts/deployments/84532/CoreProxy.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "0xF4Df9Dd327Fd30695d478c3c8a2fffAddcdD0d31",
"address": "0x764F4C95FDA0D6f8114faC54f6709b1B45f919a1",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -3047,12 +3047,6 @@
"internalType": "uint256",
"name": "depositedCollateralValue",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "reportedDebt",
"type": "uint256"
}
],
"name": "MarketUsdDeposited",
Expand Down Expand Up @@ -3102,12 +3096,6 @@
"internalType": "uint256",
"name": "depositedCollateralValue",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "reportedDebt",
"type": "uint256"
}
],
"name": "MarketUsdWithdrawn",
Expand Down
8 changes: 4 additions & 4 deletions src/synthetix/contracts/deployments/84532/MintableToken.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "0x69980C3296416820623b3e3b30703A74e2320bC8",
"address": "0xc43708f8987Df3f3681801e5e640667D86Ce3C30",
"abi": [
{
"type": "constructor",
Expand Down Expand Up @@ -381,11 +381,11 @@
"0"
],
"linkedLibraries": {},
"deployTxnHash": "0xb5c336c0978bf00ca0b676958c6bd4708669ec6c38a068a3af9a65ce58692546",
"deployTxnHash": "0x0cc8970d5bc56b2196fd8bc2008fe8c2c1bf3d23ba0b4d818dc85df201914141",
"sourceName": "src/MintableToken.sol",
"contractName": "MintableToken",
"deployedOn": "contract.MintableToken",
"highlight": true,
"gasUsed": 774833,
"gasCost": "1500000254"
"gasUsed": 774845,
"gasCost": "1000291"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "0x87f578681CDE29F0701E7274708E1A67Ee9eEf94",
"address": "0xc8eE218577545D5b38443C0eB5d7B9E4140085F2",
"abi": [
{
"inputs": [
Expand Down
135 changes: 130 additions & 5 deletions src/synthetix/contracts/deployments/84532/PerpsMarketProxy.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "0xE6C5f05C415126E6b81FCc3619f65Db2fCAd58D0",
"address": "0xf53Ca60F031FAf0E347D44FbaA4870da68250c8d",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -1383,6 +1383,30 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint128",
"name": "accountId",
"type": "uint128"
},
{
"internalType": "uint128",
"name": "marketId",
"type": "uint128"
}
],
"name": "getOpenPositionSize",
"outputs": [
{
"internalType": "int128",
"name": "positionSize",
"type": "int128"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -2178,6 +2202,30 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint128",
"name": "marketId",
"type": "uint128"
},
{
"internalType": "uint128",
"name": "settlementStrategyId",
"type": "uint128"
}
],
"name": "getSettlementRewardCost",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -2892,6 +2940,43 @@
"name": "NotEligibleForLiquidation",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint128",
"name": "accountId",
"type": "uint128"
},
{
"indexed": false,
"internalType": "int256",
"name": "availableMargin",
"type": "int256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "requiredMaintenanceMargin",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "liquidationReward",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "flagReward",
"type": "uint256"
}
],
"name": "AccountFlaggedForLiquidation",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -3240,6 +3325,19 @@
"internalType": "uint256",
"name": "maxMarketSize",
"type": "uint256"
}
],
"name": "MaxMarketSizeSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint128",
"name": "marketId",
"type": "uint128"
},
{
"indexed": false,
Expand All @@ -3248,7 +3346,7 @@
"type": "uint256"
}
],
"name": "MaxMarketSizesSet",
"name": "MaxMarketValueSet",
"type": "event"
},
{
Expand Down Expand Up @@ -3600,13 +3698,27 @@
"type": "uint128"
}
],
"name": "getMaxMarketSizes",
"name": "getMaxMarketSize",
"outputs": [
{
"internalType": "uint256",
"name": "maxMarketSize",
"type": "uint256"
},
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint128",
"name": "marketId",
"type": "uint128"
}
],
"name": "getMaxMarketValue",
"outputs": [
{
"internalType": "uint256",
"name": "maxMarketValue",
Expand Down Expand Up @@ -3853,14 +3965,27 @@
"internalType": "uint256",
"name": "maxMarketSize",
"type": "uint256"
}
],
"name": "setMaxMarketSize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint128",
"name": "marketId",
"type": "uint128"
},
{
"internalType": "uint256",
"name": "maxMarketValue",
"type": "uint256"
}
],
"name": "setMaxMarketSizes",
"name": "setMaxMarketValue",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "0xBf01fE835b3315968bbc094f50AE3164e6d3D969",
"address": "0xF9e9e905d3745F5E0B803a179E17328CFe03B56d",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -160,10 +160,10 @@
"0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
],
"linkedLibraries": {},
"deployTxnHash": "0x872050a196959b8c0b255bcbb0fe55f67117ce8ad54c15e6280e4fbebfe0377b",
"deployTxnHash": "",
"sourceName": "contracts/PythERC7412Wrapper.sol",
"contractName": "PythERC7412Wrapper",
"deployedOn": "contract.PythERC7412Wrapper",
"gasUsed": 1109617,
"gasCost": "1500000254"
"gasUsed": 0,
"gasCost": "0"
}
Loading

0 comments on commit 1e5117d

Please sign in to comment.