Skip to content

Commit

Permalink
feat: test on-chain governance with Gnosis and Polygon (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeNervoXS authored Dec 20, 2023
1 parent e96440b commit 9210b38
Show file tree
Hide file tree
Showing 8 changed files with 4,888 additions and 48 deletions.
1,954 changes: 1,954 additions & 0 deletions src/constants/abis/AngleGovernor.json

Large diffs are not rendered by default.

742 changes: 742 additions & 0 deletions src/constants/abis/ProposalReceiver.json

Large diffs are not rendered by default.

454 changes: 454 additions & 0 deletions src/constants/abis/ProposalSender.json

Large diffs are not rendered by default.

998 changes: 998 additions & 0 deletions src/constants/abis/Timelock copy.json

Large diffs are not rendered by default.

680 changes: 680 additions & 0 deletions src/constants/abis/VeANGLEVotingDelegation.json

Large diffs are not rendered by default.

100 changes: 52 additions & 48 deletions src/constants/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,54 +104,58 @@ type StablecoinType = Readonly<
}>
>;

export type ContractsRegistryType = Readonly<
{
[chainId in ChainId]: Partial<
{
ANGLE: string;
AngleDistributor: string;
AngleHelpers: string;
AngleRouter: string;
AngleRouterV2: string;
Core: string;
CoreBorrow: string;
FlashAngle: string;
FeeDistributor_sanUSDC_EUR: string;
GaugeController: string;
Governor: string;
Guardian: string;
KeeperMulticall: string;
KeeperRegistry: string;
Merkl: {
DistributionCreator?: string;
Distributor?: string;
CoreMerkl: string;
};
MerkleRootDistributor: string;
MerklGaugeMiddleman: string;
Middleman: string;
MulticallWithFailure: string;
OracleNativeUSD: string;
ProxyAdmin: string;
ProxyAdminGuardian: string;
RewardsDistributor: string;
SmartWalletWhitelist: string;
SurplusConverterSanTokens_EUR_USDC: string;
SurplusConverterUniV3_IntraCollaterals: string;
Timelock: string;
veANGLE: string;
veBoostProxy: string;
bridges?: {
Anyswap?: string;
LayerZero?: string;
RainbowBridge?: string;
};
} & {
[key in Stablecoin]?: StablecoinType;
}
>;
}
>;
export type ContractsRegistryType = Readonly<{
[chainId in ChainId]: Partial<
{
ANGLE: string;
AngleGovernor: string;
ProposalSender: string;
ProposalReceiver: string;
veANGLEDelegation: string;
AngleDistributor: string;
AngleHelpers: string;
AngleRouter: string;
AngleRouterV2: string;
Core: string;
CoreBorrow: string;
FlashAngle: string;
FeeDistributor_sanUSDC_EUR: string;
GaugeController: string;
Governor: string;
Guardian: string;
AngleLabs: string;
KeeperMulticall: string;
KeeperRegistry: string;
Merkl: {
DistributionCreator?: string;
Distributor?: string;
CoreMerkl: string;
};
MerkleRootDistributor: string;
MerklGaugeMiddleman: string;
Middleman: string;
MulticallWithFailure: string;
OracleNativeUSD: string;
ProxyAdmin: string;
ProxyAdminGuardian: string;
RewardsDistributor: string;
SmartWalletWhitelist: string;
SurplusConverterSanTokens_EUR_USDC: string;
SurplusConverterUniV3_IntraCollaterals: string;
Timelock: string;
veANGLE: string;
veBoostProxy: string;
bridges?: {
Anyswap?: string;
LayerZero?: string;
RainbowBridge?: string;
PosBridge?: string;
};
} & {
[key in Stablecoin]: StablecoinType;
}
>;
}>;

export const CONTRACTS_ADDRESSES: ContractsRegistryType = {
[ChainId.MAINNET]: MAINNET_CONTRACTS,
Expand Down
6 changes: 6 additions & 0 deletions src/constants/contracts_addresses/gnosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ const addresses: ContractsRegistryType['1'] = {
Savings: '0x004626A008B1aCdC4c74ab51644093b155e59A23',
Treasury: '0x5adDc89785D75C86aB939E9e15bfBBb7Fc086A87',
},
ANGLE: '0xE09E56C778d24859aa12a731c430921Ed811d38A',
AngleGovernor: '0xf18303E2Dd58Cf29cad655B3bD2e1Cc4582C6A16',
ProposalSender: '0x2AAaE852a35332BBA4abAd69bbf9B256b683624c',
veANGLE: '0x606b609456289176ba80272e57F0BaA9782864b7',
veANGLEDelegation: '0xD622c71aba9060F393FEC67D3e2B9335292bf23B',
Timelock: '0xF929345E5A5Ac2f86c7a5802c1CE4aa46f524b28',
AngleRouterV2: '0xB8C1350C2FdBE2F652c6869C5cD48268D0b732a7',
CoreBorrow: '0x3E399AE5B4D8bc0021e53b51c8BCdD66DD62c03b',
Governor: '0x0F70EeD1Bb51d5eDB1a2E46142638df959bAFD69',
Expand Down
2 changes: 2 additions & 0 deletions src/constants/contracts_addresses/polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ const addresses: ContractsRegistryType['1'] = {
OracleNativeUSD: '0xAB594600376Ec9fD91F8e885dADF0CE036862dE0',
ProxyAdmin: '0xBFca293e17e067e8aBdca30A5D35ADDd0cBaE6D6',
ProxyAdminGuardian: '0x10Be886C0C93615D1d109Be6C9415eeA34Fe8b57',
ProposalReceiver: '0xccaC05D378342B4717195d3436a4Cb083ca604bc',
Timelock: '0x844aE504C157A28fBb23af79Bf637691F998CF2f',
};

export default addresses;

0 comments on commit 9210b38

Please sign in to comment.