Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
Deployed all contracts and verified to Mainnet (#371)
Browse files Browse the repository at this point in the history
* Deployed all contracts and verified to Mainnet

* Added Wallet as a valid output to getAPSigner

* Fix failing CI (#372)

---------

Co-authored-by: Nenad Misic <[email protected]>
  • Loading branch information
stevieraykatz and Nenad Misic authored Sep 8, 2023
1 parent b03cf59 commit c817a3e
Show file tree
Hide file tree
Showing 28 changed files with 264 additions and 109 deletions.
266 changes: 201 additions & 65 deletions contract-address.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,25 +129,161 @@
"swapRouter": ""
}
},
"137": {
"accounts": {
"diamond": "0xf3f48A60EbA732aC2993e11eC93eAD782Ab237e4",
"facets": {
"accountsDepositWithdrawEndowments": "0xa4341A6Dc7267D6226FAEf9C35Af3cfAd46b624E",
"accountsAllowance": "0x96ca668AEecf5A515d402fE1Ca0C5B664Dfc92d2",
"accountsCreateEndowment": "0xD81fBBD072E14A0e87Fb0C832F62Ae1134C79571",
"accountsGasManager": "0xf1475dDa2EC44187DBC1D575696ed1D094D50Ef8",
"accountsQueryEndowments": "0xBEeED6a8eC2EB9De143d6A9907aa2f153BE7E470",
"accountsStrategy": "0x3eF2b7D43A746E26e8985DD2057BA77C7ba7471a",
"accountsSwapRouter": "0x660Af60D9fc671eA77F49f3Eb82f5639afeb9C26",
"accountsUpdate": "0xfb988Ee5Cf9c4391a3E1993cC0472910805Ca2AC",
"accountsUpdateEndowments": "0x214665939fb75B0A38511a35D09fF3c566fEeC26",
"accountsUpdateEndowmentSettingsController": "0xe22e0DCa96ef125891C6bbe9f40A74EFF5fd6994",
"accountsUpdateStatusEndowments": "0xe0061c9850Bb89Ed46DA27C752697A3A800A0c7C",
"diamondCutFacet": "0xdF7e6f2144f8D933dE22d9c8ba21936e8dD30011",
"diamondInitFacet": "0xc0bAe01FEeeDCD828880f2E6373b7fC02f677780",
"diamondLoupeFacet": "0x309F249c3aBE5B794199844b31CcBF946e514E14",
"ownershipFacet": "0xfF92B82eB6a43b3ab5a52eB11050f2Fdab0ba362"
}
},
"axelar": {
"gasService": "0x109641D919da899C7Bd1Ce27413D0C02b3Bb611d",
"gateway": "0x109641D919da899C7Bd1Ce27413D0C02b3Bb611d"
},
"fundraising": {
"implementation": "",
"proxy": ""
},
"gasFwd": {
"factory": "0xE592B0Cb837c2a227a92D5D34386b73Ca6EA8714",
"implementation": "0xAFE593B5005232dEDA257c1Ffe8bAD25423A60eA"
},
"giftcards": {
"implementation": "",
"proxy": ""
},
"goldfinch": {
"liquidVault": "",
"lockedVault": ""
},
"halo": {
"airdrop": {
"implementation": "",
"proxy": ""
},
"collector": {
"implementation": "",
"proxy": ""
},
"community": {
"implementation": "",
"proxy": ""
},
"distributor": {
"implementation": "",
"proxy": ""
},
"erc20Upgrade": {
"implementation": "",
"proxy": ""
},
"gov": {
"implementation": "",
"proxy": ""
},
"govHodler": {
"implementation": "",
"proxy": ""
},
"staking": {
"implementation": "",
"proxy": ""
},
"timelock": {
"implementation": "",
"proxy": ""
},
"token": "",
"vesting": {
"implementation": "",
"proxy": ""
},
"votingERC20": {
"implementation": "",
"proxy": ""
}
},
"indexFund": {
"implementation": "0x0C28aAB755c2Ce2c182B9abCdbF482f5C63970E3",
"proxy": "0x61220f6977595ce33DccbcFdE68B8641Aca08F81"
},
"multiSig": {
"charityApplications": {
"implementation": "0x861492926cC1102b05A767a34Cf777295B8Ab68F",
"proxy": "0x723ca90Ab7A2778F8D8bAc07c789cA989909367e"
},
"apTeam": {
"implementation": "0x11E1952322b142f2bE78f8830a2a5Af935258aD9",
"proxy": "0x52E2657Ab33B5A540D277737374d72CfB75c8D98"
},
"endowment": {
"emitter": {
"implementation": "0xC3769fDb11C6c76c0aD873E3C28ad539C1925f87",
"proxy": "0x1411A8Be58c84d1351f679581d388A34790ce6AD"
},
"factory": "0x5A050E9349F5b179c8303529fAD9B8b215389454",
"implementation": "0x3260DDAd913eb4f6C5c59806344A4de0199e0cb1"
},
"proxyAdmin": "0x1f18bfBA95AA3b6A6872fFd77491a27f5BD73Bb9"
},
"registrar": {
"implementation": "0x7762cC8C23056112B5DD52Ee34E167705f2320a0",
"proxy": "0xE43146c332603072F11ca0c191910F613B1D096F"
},
"router": {
"implementation": "0x962cc5c05200b277Fb956096e8fc54E3CC4c3209",
"proxy": "0xAEBEAB403Fc056701C6B07a14CE08f06D5DD5a72"
},
"tokens": {
"dai": "",
"halo": "",
"reserveToken": "",
"seedAsset": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
"usdc": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
"wmatic": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"
},
"uniswap": {
"factory": "0x1F98431c8aD98523631AE4a59f267346ea31F984",
"swapRouter": "0xE592427A0AEce92De3Edee1F18E0157C05861564"
},
"vaultEmitter": {
"implementation": "0x6e1F83926e8E37F94660Ae7bE152F6338E7947aA",
"proxy": "0x549c05870A4889bA79B3E5743493932c0fdF34BA"
}
},
"31337": {
"accounts": {
"diamond": "0xf7C497157c4879A4C6ca9B66CF3911BD2b71E2da",
"facets": {
"accountsDepositWithdrawEndowments": "0x486b1C056AC365dD969056C717ab8E7AEd59a178",
"accountsAllowance": "0xAb3aa8BCEA9832CB18153Aa9731E989A289277f7",
"accountsCreateEndowment": "0xb463AFC0b3A499a2D826155fc6E6E73061BEF826",
"accountsGasManager": "0x53557e97deED0DdEEf2404a6A29A415e379051bb",
"accountsQueryEndowments": "0xbF6b148a440acAb936796ad40947C0C33C78639A",
"accountsStrategy": "0xA8b73E610095A61de646eD06334c61b94318df52",
"accountsSwapRouter": "0xacE2a31e8B8d66C24DAea008d1eDaf571369A728",
"accountsUpdate": "0x45CCb6251F3500c7EE3219eE47C213fB239346cB",
"accountsUpdateEndowments": "0x33F76554d1474061482Bfa858f35AFD9BAb4D1C5",
"accountsUpdateEndowmentSettingsController": "0x053d1190081dC68ED544D5A2788878E823F64a69",
"accountsUpdateStatusEndowments": "0x03Bb663AccB9FD14aD3c37B2D66B025bbd4Fc533",
"accountsDepositWithdrawEndowments": "",
"accountsAllowance": "",
"accountsCreateEndowment": "",
"accountsGasManager": "",
"accountsQueryEndowments": "",
"accountsStrategy": "",
"accountsSwapRouter": "",
"accountsUpdate": "",
"accountsUpdateEndowments": "",
"accountsUpdateEndowmentSettingsController": "",
"accountsUpdateStatusEndowments": "",
"diamondCutFacet": "0x42f293b5D45C0a949639EE229E4c9acD51DF904D",
"diamondInitFacet": "0x730EEB14F27B5D6132b9BF7D62eF877D89600F55",
"diamondLoupeFacet": "0x22a1B036322472baC663A4d741d87829c30b8E4e",
"ownershipFacet": "0x658E94B5FfBDe68b99203BBbBAef618D36862766"
"diamondInitFacet": "",
"diamondLoupeFacet": "",
"ownershipFacet": ""
}
},
"axelar": {
Expand All @@ -159,8 +295,8 @@
"proxy": ""
},
"gasFwd": {
"factory": "0xB4B13f54690D297b73291456e027b33aA303f744",
"implementation": "0xbc6Fe0a018266F9F02C0E21cb21388cf1D09a560"
"factory": "",
"implementation": ""
},
"giftcards": {
"implementation": "",
Expand Down Expand Up @@ -218,35 +354,35 @@
}
},
"indexFund": {
"implementation": "0x9ed0fC3ba80c2c3B443b3dc51597245F840d9D5C",
"proxy": "0x5C680949386aCD7c85FBC6f56413936f091e3f47"
"implementation": "",
"proxy": ""
},
"multiSig": {
"charityApplications": {
"implementation": "0xBe3865948ba88f479Ca05265E9B59869d99552de",
"proxy": "0x3ab0ADa0d1De810cc6845B7433134554D98Ff39f"
"implementation": "",
"proxy": ""
},
"apTeam": {
"implementation": "0x5602bAF3002df39FbAA568C0657bBBBB8e84527a",
"proxy": "0x7E891709346B193ff9f37Eb739C8a294B2395Ba6"
},
"endowment": {
"emitter": {
"implementation": "0x4CfBB8659d6BA2cA8af8c1857b4CE11a88A4B29E",
"proxy": "0xd9Ee17555a04f2E34ea43528628582AC45A6E984"
"implementation": "",
"proxy": ""
},
"factory": "0x790094B9fdC8C8a83507f7Eb275DEe903Ffd71eD",
"implementation": "0x562EcE7daE572a5352D50562C472CBd41402F310"
"factory": "",
"implementation": ""
},
"proxyAdmin": "0x1BE9451496bfB6aDcFfbc308b673018a8972AFFE"
},
"registrar": {
"implementation": "0x1BE9451496bfB6aDcFfbc308b673018a8972AFFE",
"proxy": "0x2e3c2536E1349e0E18d057f61499Ef64BB4B23E8"
"implementation": "0xfC8caFA21dc76a1065494E213dE9F94E788DaAC9",
"proxy": "0xB2BD05A652973f567aD6472b9FEa29FE293f6cD9"
},
"router": {
"implementation": "0x3539f918A787529732465a4ccb89A96FFfb33073",
"proxy": "0x801E1B78732dbEC5B8ACc3EcD24031B4e32aD341"
"implementation": "0x9B1a72BD9efC089935766f7Ebc8779B67C0F7495",
"proxy": "0x8450D449D5Cc73EBf35970d9723e8d214151e702"
},
"tokens": {
"dai": "",
Expand All @@ -261,29 +397,29 @@
"swapRouter": "0x40B5D836dBeAf26c652210D8f07169B99E77C994"
},
"vaultEmitter": {
"implementation": "0x402e14f3f9118A3745d8554EC4106450fB91aE23",
"proxy": "0x7Eb691CaD47e698642Ac507aC0383d8Ef1A20C7D"
"implementation": "",
"proxy": ""
}
},
"80001": {
"accounts": {
"diamond": "0x543dDFcAFAF31629b46cb8c108633cA8A11F31cc",
"diamond": "0x79E9049566A30E322AFa57621469aF846B59e678",
"facets": {
"accountsDepositWithdrawEndowments": "0x0124773BEA450412ce9aA572b7EF3e4535495F01",
"accountsAllowance": "0x193556259E1962Faaa0a9Ac7D69DDeF54eD521d1",
"accountsCreateEndowment": "0xb9B2b1a49020216fC5715AE05132dda968A06023",
"accountsGasManager": "0xe224BcDd0aa37C262C7D9865d6fC9F8974996Ca4",
"accountsQueryEndowments": "0xD1159b23003Db899801022c06dC09C00528fe20A",
"accountsStrategy": "0x51B51fA42802129a1e215300C8bfEE54879e5A31",
"accountsSwapRouter": "0x23013c2a8E03Af04e23788789676E240654cc60d",
"accountsUpdate": "0x4ba1Dff21DD94b1c87a4f2866eAEe90D7FfeFF57",
"accountsUpdateEndowments": "0xC1d957Ee8EA1B44734b4Db056f96B37580Bd258E",
"accountsUpdateEndowmentSettingsController": "0x3A90040cdfB5CF553c4E907D529DaAE6d32Ff096",
"accountsUpdateStatusEndowments": "0x2cC9270A9AFFCd842D49da955b445AC7B2C032d0",
"diamondCutFacet": "0x0d6895AeA05A8CA4E7d35BbdD8c3a86F5778C844",
"diamondInitFacet": "0x565edE93A8f394041B0125Ed7d1b51Fc1269974F",
"diamondLoupeFacet": "0xE75dFF8601646a92df97E07618c19bd5083971aD",
"ownershipFacet": "0x37aEa84270705e52793294e1ed566C6FD8E3503e"
"accountsDepositWithdrawEndowments": "",
"accountsAllowance": "",
"accountsCreateEndowment": "",
"accountsGasManager": "",
"accountsQueryEndowments": "",
"accountsStrategy": "",
"accountsSwapRouter": "",
"accountsUpdate": "",
"accountsUpdateEndowments": "",
"accountsUpdateEndowmentSettingsController": "",
"accountsUpdateStatusEndowments": "",
"diamondCutFacet": "0xF856EAA0aF967b3D5390c5914da111e10AAb69b9",
"diamondInitFacet": "0xC44f18c4d5DAc80bae8f27c40BB670e5629ae88B",
"diamondLoupeFacet": "",
"ownershipFacet": ""
}
},
"axelar": {
Expand All @@ -295,8 +431,8 @@
"proxy": ""
},
"gasFwd": {
"factory": "0xC97Ee04a9acCfb5C3aB0F74cfF7fe27F41577cAc",
"implementation": "0x4B49aC71590A13d26742C9cb2BDd5994dB369cAe"
"factory": "",
"implementation": ""
},
"giftcards": {
"implementation": "",
Expand Down Expand Up @@ -354,35 +490,35 @@
}
},
"indexFund": {
"implementation": "0x8b3cE93D99Bfb250c3A0856BcBfB312dd8feDF58",
"proxy": "0x242E5B8B5dAe322A7A714D01d945d4effF53bfC3"
"implementation": "",
"proxy": ""
},
"multiSig": {
"charityApplications": {
"implementation": "0x234fa09342F4D2e6b02862058dFb2f9856899277",
"proxy": "0x0fe705c721fade290c49c190f90c1968229e44Df"
"implementation": "",
"proxy": ""
},
"apTeam": {
"implementation": "0xF572CeFCa24d375C3D62472aabF4F32E90180ffB",
"proxy": "0x2e163f5362a24635f5536d1b5feEb709C7821abd"
"implementation": "0x8e020247B23fe87B5dc80bdc2f9A4EE949Bfb8c3",
"proxy": "0x1781c0d8570CFa160f23D6C887CB267872acAD85"
},
"endowment": {
"emitter": {
"implementation": "0x79DE5280CECF23173807E3B2A8D7819c65CE5416",
"proxy": "0x6F1Dc1ff90363aB80369963140A469bB311ae883"
"implementation": "",
"proxy": ""
},
"factory": "0x46bB44c5Ce32586Dd3c8BA5f583Aa153547f1235",
"implementation": "0x2a421fa8cD9190E59103b4dFff43A757171F6F2b"
"factory": "",
"implementation": ""
},
"proxyAdmin": "0x99fAf8b7Be5Cae6F75fAD36c762b2D26533D12b8"
"proxyAdmin": "0xd16F5e5F2c7A13fb38D6106ea0951E7B1e1a004b"
},
"registrar": {
"implementation": "0xB0a74afD87fCCA6f5bb7fB91c46F824207f721Ce",
"proxy": "0x129C401C221a7C7FaD2E7102fE43a0B18651f24e"
"implementation": "0x57a5192834E21bDdee5a1819d1659210c476aB26",
"proxy": "0xdd0680B2B5A4B12C2811De22221d256432e70Cf1"
},
"router": {
"implementation": "0x4aD6A4165fEB284c19d95346245A6D9eCe75460A",
"proxy": "0xbB2329eE5d1fd50bcB7A50F28ef6aa772D58ba5b"
"implementation": "0x0845fFD9452E5fC60E21b9d23E06d037E0B4Fe57",
"proxy": "0x2ebF838F23F837a1baFaE92602CE55B14b9338aC"
},
"tokens": {
"dai": "0xb973d2876c4f161439ad05f1dae184dbd594e04e",
Expand All @@ -397,8 +533,8 @@
"swapRouter": "0xE592427A0AEce92De3Edee1F18E0157C05861564"
},
"vaultEmitter": {
"implementation": "0x855372fE4140Fd2617DF04C7A615919C0CBb470A",
"proxy": "0x0f26FaB9d3F22d12764007685404d5c5612fE92f"
"implementation": "",
"proxy": ""
}
}
}
4 changes: 2 additions & 2 deletions tasks/helpers/proposeCharityApplication.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {SignerWithAddress} from "@nomiclabs/hardhat-ethers/signers";
import {BytesLike} from "ethers";
import {BytesLike, Wallet} from "ethers";
import {CharityApplications__factory} from "typechain-types";
import {AccountMessages} from "typechain-types/contracts/multisigs/CharityApplications";
import {filterEvents, logger} from "utils";
Expand All @@ -14,7 +14,7 @@ import {filterEvents, logger} from "utils";
*/
export async function proposeCharityApplication(
charAppsAddress: string,
owner: SignerWithAddress,
owner: SignerWithAddress | Wallet,
applicationRequest: AccountMessages.CreateEndowmentRequestStruct,
metadata: BytesLike = "0x"
): Promise<boolean> {
Expand Down
5 changes: 3 additions & 2 deletions tasks/helpers/submitMultiSigTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {SignerWithAddress} from "@nomiclabs/hardhat-ethers/signers";
import {BytesLike} from "ethers";
import {IMultiSigGeneric__factory} from "typechain-types";
import {filterEvents, logger} from "utils";
import { Wallet } from "ethers";

/**
* Submits a transaction to the designated Multisig contract and executes it if possible.
Expand All @@ -13,13 +14,13 @@ import {filterEvents, logger} from "utils";
*/
export async function submitMultiSigTx(
msAddress: string,
owner: SignerWithAddress,
owner: SignerWithAddress | Wallet,
destination: string,
data: BytesLike
): Promise<boolean> {
logger.out(`Submitting transaction to Multisig at address: ${msAddress}...`);
const multisig = IMultiSigGeneric__factory.connect(msAddress, owner);
const tx = await multisig.submitTransaction(destination, 0, data, "0x");
const tx = await multisig.submitTransaction(destination, 0, data, "0x", {gasPrice: 120*10**9});
logger.out(`Tx hash: ${tx.hash}`);
const receipt = await tx.wait();

Expand Down
Loading

0 comments on commit c817a3e

Please sign in to comment.