Skip to content

Commit

Permalink
fix: rename binance to bnb (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra authored Oct 9, 2023
1 parent 151c145 commit 35285a2
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {GovernanceConfig} from '../types';
import {ChainId} from '../../generator/chains';

export const governanceConfigBinance: GovernanceConfig = {
name: 'Binance',
CHAIN_ID: ChainId.binance,
export const governanceConfigBNB: GovernanceConfig = {
name: 'BNB',
CHAIN_ID: ChainId.bnb,
ADDRESSES: {
CROSS_CHAIN_CONTROLLER: '0x9d33ee6543C9b2C8c183b8fb58fB089266cffA19',
CL_EMERGENCY_ORACLE: '0xcabb46FfB38c93348Df16558DF156e9f68F9F7F1',
Expand Down
20 changes: 4 additions & 16 deletions scripts/generateAddresses.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
import {
appendFileSync,
existsSync,
mkdirSync,
readdirSync,
rmSync,
rmdirSync,
writeFileSync,
} from 'fs';
import {
governanceConfigMainnet,
governanceConfigSepolia,
governanceConfigGoerli,
} from './configs/governance/ethereum';
import {appendFileSync, existsSync, mkdirSync, readdirSync, rmSync, writeFileSync} from 'fs';
import {governanceConfigMainnet, governanceConfigGoerli} from './configs/governance/ethereum';
import {arbitrumGoerliProtoV3, arbitrumProtoV3} from './configs/pools/arbitrum';
import {
avalancheProtoV2,
Expand Down Expand Up @@ -54,7 +42,7 @@ import {governanceConfigMumbai, governanceConfigPolygon} from './configs/governa
import {generateABIImports} from './generator/abis';
import {governanceConfigMetis} from './configs/governance/metis';
import {governanceConfigBase} from './configs/governance/base';
import {governanceConfigBinance} from './configs/governance/binance';
import {governanceConfigBNB} from './configs/governance/bnb';
import {baseAddresses} from './configs/networks/base';
import {generateNetworkAddresses} from './generator/networkGenerator';
import {arbitrumAddresses} from './configs/networks/arbitrum';
Expand Down Expand Up @@ -88,7 +76,7 @@ async function main() {
governanceConfigGoerli,
governanceConfigMetis,
governanceConfigBase,
governanceConfigBinance,
governanceConfigBNB,
].map((config) => generateGovernanceLibrary(config)),
);
const v2LibraryNames = await Promise.all(
Expand Down
2 changes: 1 addition & 1 deletion scripts/generator/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ export enum ChainId {
scroll_sepolia = 534351,
metis = 1088,
base = 8453,
binance = 56,
bnb = 56,
}
2 changes: 1 addition & 1 deletion scripts/generator/clients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const RPC_PROVIDERS = {
multicall: true,
},
}),
[ChainId.binance]: createPublicClient({
[ChainId.bnb]: createPublicClient({
chain: bsc,
transport: http(),
batch: {
Expand Down
2 changes: 1 addition & 1 deletion src/AaveAddressBook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {GovernanceV3Mumbai} from './GovernanceV3Mumbai.sol';
import {GovernanceV3Goerli} from './GovernanceV3Goerli.sol';
import {GovernanceV3Metis} from './GovernanceV3Metis.sol';
import {GovernanceV3Base} from './GovernanceV3Base.sol';
import {GovernanceV3Binance} from './GovernanceV3Binance.sol';
import {GovernanceV3BNB} from './GovernanceV3BNB.sol';
import {AaveV2EthereumAMM} from './AaveV2EthereumAMM.sol';
import {AaveV2EthereumArc} from './AaveV2EthereumArc.sol';
import {AaveV2Ethereum} from './AaveV2Ethereum.sol';
Expand Down
6 changes: 3 additions & 3 deletions src/AaveMisc.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ library AaveMisc {
// https://etherscan.io/address/0x86C3FfeE349A7cFf7cA88C449717B1b133bfb517
address internal constant PROXY_ADMIN_ETHEREUM_LONG = 0x86C3FfeE349A7cFf7cA88C449717B1b133bfb517;

// https://bscscan.com/address/0x47aAdaAE1F05C978E6aBb7568d11B7F6e0FC4d6A
// https://etherscan.io/address/0x47aAdaAE1F05C978E6aBb7568d11B7F6e0FC4d6A
address internal constant TRANSPARENT_PROXY_FACTORY_BINANCE =
0x47aAdaAE1F05C978E6aBb7568d11B7F6e0FC4d6A;

// https://bscscan.com/address/0x39EBFfc7679c62Dfcc4A3E2c09Bcb0be255Ae63c
// https://etherscan.io/address/0x39EBFfc7679c62Dfcc4A3E2c09Bcb0be255Ae63c
address internal constant PROXY_ADMIN_BINANCE = 0x39EBFfc7679c62Dfcc4A3E2c09Bcb0be255Ae63c;

// https://bscscan.com/address/0x3b56998Ec06477704622ca8e2eA1b4db134cec32
// https://etherscan.io/address/0x3b56998Ec06477704622ca8e2eA1b4db134cec32
address internal constant CREATE_3_FACTORY_BINANCE = 0x3b56998Ec06477704622ca8e2eA1b4db134cec32;

// https://polygonscan.com/address/0xB4e496f70602fE2AC6Ae511D028BA4D194773B29
Expand Down
26 changes: 26 additions & 0 deletions src/GovernanceV3BNB.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;

// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR
import {IGovernanceCore, IPayloadsControllerCore, IDataWarehouse, IVotingStrategy} from './GovernanceV3.sol';

library GovernanceV3BNB {
// https://bscscan.com/address/0x9d33ee6543C9b2C8c183b8fb58fB089266cffA19
address internal constant CROSS_CHAIN_CONTROLLER = 0x9d33ee6543C9b2C8c183b8fb58fB089266cffA19;

// https://bscscan.com/address/0xcabb46FfB38c93348Df16558DF156e9f68F9F7F1
address internal constant CL_EMERGENCY_ORACLE = 0xcabb46FfB38c93348Df16558DF156e9f68F9F7F1;

// https://bscscan.com/address/0xE5EF2Dd06755A97e975f7E282f828224F2C3e627
IPayloadsControllerCore internal constant PAYLOADS_CONTROLLER =
IPayloadsControllerCore(0xE5EF2Dd06755A97e975f7E282f828224F2C3e627);

// https://bscscan.com/address/0xE3B770Dc4ae3f8bECaB3Ed12dE692c741603e16A
address internal constant PC_DATA_HELPER = 0xE3B770Dc4ae3f8bECaB3Ed12dE692c741603e16A;

// https://bscscan.com/address/0x9390B1735def18560c509E2d0bc090E9d6BA257a
address internal constant EXECUTOR_LVL_1 = 0x9390B1735def18560c509E2d0bc090E9d6BA257a;

// https://bscscan.com/address/0x0000000000000000000000000000000000000000
address internal constant EXECUTOR_LVL_2 = 0x0000000000000000000000000000000000000000;
}
2 changes: 1 addition & 1 deletion src/ts/AaveAddressBook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export * as GovernanceV3Mumbai from './GovernanceV3Mumbai';
export * as GovernanceV3Goerli from './GovernanceV3Goerli';
export * as GovernanceV3Metis from './GovernanceV3Metis';
export * as GovernanceV3Base from './GovernanceV3Base';
export * as GovernanceV3Binance from './GovernanceV3Binance';
export * as GovernanceV3BNB from './GovernanceV3BNB';
export * as AaveV2EthereumAMM from './AaveV2EthereumAMM';
export * as AaveV2EthereumArc from './AaveV2EthereumArc';
export * as AaveV2Ethereum from './AaveV2Ethereum';
Expand Down
6 changes: 3 additions & 3 deletions src/ts/AaveMisc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ export const CREATE_3_FACTORY_ETHEREUM = '0xcc3C54B95f3f1867A43009B80ed4DD930E3c
// https://etherscan.io/address/0x86C3FfeE349A7cFf7cA88C449717B1b133bfb517
export const PROXY_ADMIN_ETHEREUM_LONG = '0x86C3FfeE349A7cFf7cA88C449717B1b133bfb517';

// address https://bscscan.com/address/0x47aAdaAE1F05C978E6aBb7568d11B7F6e0FC4d6A
// address https://etherscan.io/address/0x47aAdaAE1F05C978E6aBb7568d11B7F6e0FC4d6A
export const TRANSPARENT_PROXY_FACTORY_BINANCE = '0x47aAdaAE1F05C978E6aBb7568d11B7F6e0FC4d6A';

// address https://bscscan.com/address/0x39EBFfc7679c62Dfcc4A3E2c09Bcb0be255Ae63c
// address https://etherscan.io/address/0x39EBFfc7679c62Dfcc4A3E2c09Bcb0be255Ae63c
export const PROXY_ADMIN_BINANCE = '0x39EBFfc7679c62Dfcc4A3E2c09Bcb0be255Ae63c';

// address https://bscscan.com/address/0x3b56998Ec06477704622ca8e2eA1b4db134cec32
// address https://etherscan.io/address/0x3b56998Ec06477704622ca8e2eA1b4db134cec32
export const CREATE_3_FACTORY_BINANCE = '0x3b56998Ec06477704622ca8e2eA1b4db134cec32';

// address https://polygonscan.com/address/0xB4e496f70602fE2AC6Ae511D028BA4D194773B29
Expand Down
File renamed without changes.

0 comments on commit 35285a2

Please sign in to comment.