Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
scryptoginger committed Jul 12, 2024
1 parent c5b3689 commit 3ecf2a8
Show file tree
Hide file tree
Showing 48 changed files with 2,147 additions and 393 deletions.
142 changes: 127 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,135 @@
# dependencies
#my entries, flawed or not
**.deps/
**.states/
**package-lock.json
**package.json
.example


# vscode
.vscode

# hardhat
artifacts
cache
deployments
node_modules

# yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.yarn/

# eslint
.eslintcache
# prettier
**/.prettier*

# misc
.DS_Store
cache/
artifacts/

# IDE
.vscode
coverage*
typechain/

.vscode/*
!.vscode/settings.json.default
!.vscode/launch.json.default
!.vscode/extensions.json.default

node_modules/
.env

.yalc
yalc.lock

contractsInfo.json
deployments/hardhat
deployments/localhost

# don't push the environment vars!
**.env

# Built application files
.DS*
*.apk
*.ap_
*.aab

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/
# Uncomment the following line in case you need and you don't have the release build type files in your app
# release/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# IntelliJ
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
# Android Studio 3 in .gitignore file.
.idea/caches
.idea/modules.xml
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
.idea/navEditor.xml
.idea

# cli
dist
# Keystore files
# Uncomment the following lines if you do not want to check your keystore files in.
#*.jks
#*.keystore

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# Google Services (e.g. APIs or Firebase)
# google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json

# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md

# Version control
vcs.xml

# lint
lint/intermediates/
lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/


node_modules
2 changes: 1 addition & 1 deletion LICENCE → LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 BuidlGuidl
Copyright (c) 2024 cryptoginger

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,11 @@
"packageManager": "[email protected]",
"engines": {
"node": ">=18.17.0"
},
"dependencies": {
"@wagmi/core": "^2.11.5",
"alchemy-sdk": "^3.3.1",
"node-fetch": "^3.3.2",
"viem": "^2.16.1"
}
}
3 changes: 2 additions & 1 deletion packages/hardhat/deploy/00_deploy_your_contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const deployYourContract: DeployFunction = async function (hre: HardhatRuntimeEn
*/
const { deployer } = await hre.getNamedAccounts();
const { deploy } = hre.deployments;

console.debug("deployer", deployer);
console.debug("deploy", deploy);
await deploy("YourContract", {
from: deployer,
// Contract constructor arguments
Expand Down
3 changes: 3 additions & 0 deletions packages/hardhat/deploy/99_generateTsAbis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,12 @@ function getContractDataFromDeployments() {
throw Error("At least one other deployment script should exist to generate an actual contract.");
}
const output = {} as Record<string, any>;
console.log({ output });
for (const chainName of getDirectories(DEPLOYMENTS_DIR)) {
const chainId = fs.readFileSync(`${DEPLOYMENTS_DIR}/${chainName}/.chainId`).toString();
console.log({ chainId });
const contracts = {} as Record<string, any>;
console.log({ contracts });
for (const contractName of getContractNames(`${DEPLOYMENTS_DIR}/${chainName}`)) {
const { abi, address, metadata } = JSON.parse(
fs.readFileSync(`${DEPLOYMENTS_DIR}/${chainName}/${contractName}.json`).toString(),
Expand Down
Loading

0 comments on commit 3ecf2a8

Please sign in to comment.