Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
6a85fce
hardhat and forge working update goerli arb and mainnet
duncan4123 Jan 7, 2023
249aa0d
update gitignore for /lib
duncan4123 Jan 7, 2023
6828388
add goerli contracts to readme
duncan4123 Jan 7, 2023
14727c5
add etherscan verify and start switching to hardhat-deploy
duncan4123 Jan 8, 2023
484a824
uncomment some things
duncan4123 Jan 8, 2023
487dc34
update readme
duncan4123 Jan 8, 2023
9f34253
Switch to hardhat-deploy plugin, change some settings in hh config an…
t0rbik Jan 9, 2023
4442671
Add reuse of already deployed contracts, init, whitelist and init-dis…
t0rbik Jan 11, 2023
8a25743
script to cleanup contract list + add contracts list to readme
duncan4123 Jan 14, 2023
cc16c70
added scripts / verify velo manually (not sure why that needed to hap…
duncan4123 Jan 15, 2023
48b8e3b
note some extra jobs
duncan4123 Jan 17, 2023
e9c9dd8
Revert "deployed to mainnet - problem with etherscan verify"
duncan4123 Jan 18, 2023
0607497
keep deployments in gitignor
duncan4123 Jan 18, 2023
73a9ce3
Fix URL for verify contracts
duncan4123 Jan 18, 2023
4696882
update names
duncan4123 Jan 23, 2023
bd32655
rename velo Velo IVelo
duncan4123 Jan 27, 2023
bf65c59
_velo _flow
duncan4123 Jan 27, 2023
0fbea86
deployed to arbGoerli again
duncan4123 Jan 27, 2023
9990ffa
yarn export
duncan4123 Jan 27, 2023
0ced1b1
config with ceazor
duncan4123 Jan 27, 2023
5c7b7b7
count for partner and team and tribute NFTs
duncan4123 Jan 27, 2023
f733c06
switch from arbHardhat config to arbConfig in prep for mainnet deploy
duncan4123 Jan 28, 2023
78324f3
deploy script with arbConfig makes it to the very last step then fails
duncan4123 Jan 28, 2023
9e2ecf1
locked error down to partner NFTs config
duncan4123 Jan 29, 2023
932ba05
ad ONE_MILLION
duncan4123 Jan 29, 2023
716d8cc
m
duncan4123 Jan 30, 2023
0c4cf28
Removed the airdrop and weve redemption plus governer. Delay the part…
duncan4123 Jan 30, 2023
ef83476
feat: add create lock for script
0xMotto Feb 4, 2023
c679909
feat: add batch create lock script
0xMotto Feb 4, 2023
aa935eb
feat: add batch create lock script
0xMotto Feb 4, 2023
4b05baf
chore: amend sample commad
0xMotto Feb 4, 2023
2d26235
merge prep
duncan4123 Feb 4, 2023
4841a8c
settings
duncan4123 Feb 4, 2023
78a7cbf
rename Math
duncan4123 Feb 4, 2023
342238f
lost l2
duncan4123 Feb 4, 2023
b421f65
push fix for math lib
duncan4123 Feb 5, 2023
b6badd2
got it to compile - hoping this should be testable now..
duncan4123 Feb 11, 2023
5b75a78
update init script to set team tank and voter on pair factory
duncan4123 Feb 11, 2023
37cdcae
Fix init script errors by allowing deployer to set team deployer = ms…
duncan4123 Feb 11, 2023
ed31359
Changes to get the init script to be able to set team and voter using…
duncan4123 Feb 11, 2023
4e7abc0
make set tank updateable by team forever (but team can only be set on…
duncan4123 Feb 11, 2023
f0fa533
fix pendingTank
duncan4123 Feb 11, 2023
1b2dc0e
Comment out require voter UNTIL forge tests can set voter
duncan4123 Feb 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ abi
build
scripts/xbribes
# for verify
Flattened.sol
Flattened.sol
lib/openzeppelin-contracts
lib/forge-std
lib/LayerZero
lib/forge-std

36 changes: 36 additions & 0 deletions checkEnv.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { z, type ZodFormattedError } from "zod";

const schema = z.object({
ALCHEMY_GOERLI_ARBITRUM_API_KEY: z.string().min(1),
ARB_SCAN_API_KEY: z.string().min(1),
});

type DestructedEnv = {
[k in keyof z.infer<typeof schema>]: z.infer<typeof schema>[k] | undefined;
};

const destructedEnv: DestructedEnv = {
ALCHEMY_GOERLI_ARBITRUM_API_KEY: process.env.ALCHEMY_GOERLI_ARBITRUM_API_KEY,
ARB_SCAN_API_KEY: process.env.ARB_SCAN_API_KEY,
};

const _env = schema.safeParse(destructedEnv);

const formatErrors = (
errors: ZodFormattedError<Map<string, string>, string>
) => {
return Object.entries(errors)
.map(([name, value]) => {
if (value && "_errors" in value)
return `${name}: ${value._errors.join(", ")}\n`;
})
.filter(Boolean);
};

if (!_env.success) {
console.error(
"❌ Invalid environment variables:\n",
...formatErrors(_env.error.format())
);
throw new Error("Invalid environment variables");
}
17 changes: 17 additions & 0 deletions contractNameAndAddress.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { HardhatRuntimeEnvironment } from 'hardhat/types'
import { DeployFunction } from 'hardhat-deploy/types'

const func: GetContractNames = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre
const { deploy } = deployments

const { deployer } = await getNamedAccounts()

await deploy('GaugeFactory', {
from: deployer,
args: [],
log: true,
skipIfAlreadyDeployed: false
})
}
export default func
Loading