Skip to content

Commit

Permalink
feat: update base contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorvin committed Oct 24, 2024
1 parent aedcb46 commit ce23570
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 77 deletions.
68 changes: 0 additions & 68 deletions abis/Rebalancer.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,6 @@
"name": "OwnableUnauthorizedAccount",
"type": "error"
},
{
"inputs": [],
"name": "Paused",
"type": "error"
},
{
"inputs": [
{
Expand Down Expand Up @@ -431,25 +426,6 @@
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bool",
"name": "paused",
"type": "bool"
}
],
"name": "Pause",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -1173,19 +1149,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
}
],
"name": "pause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "pendingOwner",
Expand Down Expand Up @@ -1219,19 +1182,6 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
}
],
"name": "resume",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand All @@ -1256,24 +1206,6 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
},
{
"internalType": "address",
"name": "strategy",
"type": "address"
}
],
"name": "setStrategy",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down
92 changes: 89 additions & 3 deletions abis/SimpleOracleStrategy.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
"name": "InvalidConfig",
"type": "error"
},
{
"inputs": [],
"name": "InvalidOraclePrice",
"type": "error"
},
{
"inputs": [],
"name": "InvalidPrice",
Expand Down Expand Up @@ -82,6 +87,11 @@
"name": "OwnableUnauthorizedAccount",
"type": "error"
},
{
"inputs": [],
"name": "Paused",
"type": "error"
},
{
"inputs": [
{
Expand Down Expand Up @@ -136,6 +146,19 @@
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
}
],
"name": "Pause",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand All @@ -155,6 +178,19 @@
"name": "SetOperator",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
}
],
"name": "Unpause",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -318,7 +354,7 @@
},
{
"internalType": "uint256",
"name": "totalSupply",
"name": "lastTotalSupply",
"type": "uint256"
}
],
Expand Down Expand Up @@ -473,9 +509,14 @@
{
"components": [
{
"internalType": "uint184",
"internalType": "bool",
"name": "paused",
"type": "bool"
},
{
"internalType": "uint128",
"name": "oraclePrice",
"type": "uint184"
"type": "uint128"
},
{
"internalType": "uint24",
Expand Down Expand Up @@ -539,6 +580,25 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
}
],
"name": "isPaused",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -580,6 +640,19 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
}
],
"name": "pause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "pendingOwner",
Expand Down Expand Up @@ -769,6 +842,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
}
],
"name": "unpause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down
8 changes: 4 additions & 4 deletions networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@
"startBlock": 14560860
},
"Rebalancer": {
"address": "0xcE0275DdAAE25494Cf1e4D9255b2ACB3e689afcd",
"startBlock": 21456240
"address": "0xF7453828CC272D7BA255E9D455e80a4bf529a003",
"startBlock": 21496640
},
"SimpleOracleStrategy": {
"address": "0xe4fD3f36B832DC67DD758fE1D58FD1194Fa6e854",
"startBlock": 21487180
"address": "0x28e33115e346a63525e6D96405D5bA8Ca41D909f",
"startBlock": 21496670
}
},
"berachain-bartio": {
Expand Down
4 changes: 2 additions & 2 deletions src/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function getRebalancerAddress(): string {
if (chainId == ARBITRUM_SEPOLIA) {
return '0x6A7D783907719B0D2F4a8677AB9C4Dbe8F79B2E5'
} else if (chainId == BASE) {
return '0xcE0275DdAAE25494Cf1e4D9255b2ACB3e689afcd'
return '0xF7453828CC272D7BA255E9D455e80a4bf529a003'
} else if (chainId == BERA_TESTNET) {
return '0x7d06c636bA86BD1fc2C38B11F1e5701145CABc30'
} else if (chainId == ZKSYNC_ERA) {
Expand All @@ -66,7 +66,7 @@ export function getSimpleOracleStrategyAddress(): string {
if (chainId == ARBITRUM_SEPOLIA) {
return '0x390Bdd66011e45197fB5c1f54D6B956C4BFE6AE5'
} else if (chainId == BASE) {
return '0xe4fD3f36B832DC67DD758fE1D58FD1194Fa6e854'
return '0x28e33115e346a63525e6D96405D5bA8Ca41D909f'
} else if (chainId == BERA_TESTNET) {
return '0x7d06c636bA86BD1fc2C38B11F1e5701145CABc30'
} else if (chainId == ZKSYNC_ERA) {
Expand Down

0 comments on commit ce23570

Please sign in to comment.