-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9168c1d
Showing
419 changed files
with
45,264 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/debian | ||
{ | ||
"name": "Debian", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "docker.io/layerzerolabs/devcon:1.0.9", | ||
|
||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": "true", | ||
"configureZshAsDefaultShell": "true", | ||
"installOhMyZsh": "true", | ||
// username should be root and installOhMyZshConfig should be false to avoid overwriting .zshrc in the base image | ||
"username": "root", | ||
"installOhMyZshConfig": "false" | ||
}, | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": { | ||
// Docker Compose v2 is required for or compatible with the repository | ||
"dockerDashComposeVersion": "v2", | ||
// https://github.com/devcontainers/features/issues/573#issuecomment-1593854983 | ||
"moby": false | ||
} | ||
}, | ||
|
||
// Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
// Theme | ||
"PKief.material-icon-theme", | ||
// git | ||
"GitHub.remotehub", | ||
"GitHub.copilot", | ||
"GitHub.vscode-pull-request-github", | ||
"eamodio.gitlens", | ||
"vivaxy.vscode-conventional-commits", | ||
// Editor | ||
"oderwat.indent-rainbow", | ||
"iliazeus.vscode-ansi", | ||
"editorconfig.editorconfig", | ||
// Spell checker | ||
"streetsidesoftware.code-spell-checker", | ||
// Zip | ||
"arcanis.vscode-zipfs", | ||
// PDF viewer | ||
"tomoki1207.pdf", | ||
// YAML | ||
"redhat.vscode-yaml", | ||
// Docker | ||
"ms-azuretools.vscode-docker", | ||
// Javascript and Typescript | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
// Solidity | ||
"NomicFoundation.hardhat-solidity", | ||
// Rust | ||
"rust-lang.rust-analyzer", | ||
// Move | ||
"damirka.move-syntax", | ||
"hashicorp.terraform", | ||
// Live share | ||
"ms-vsliveshare.vsliveshare", | ||
// Mermaid | ||
"bierner.markdown-mermaid" | ||
], | ||
"settings": { | ||
"remote.autoForwardPorts": false, | ||
"terminal.integrated.defaultProfile.linux": "zsh", | ||
"terminal.integrated.profiles.linux": { | ||
"bash": { | ||
"path": "/usr/bash" | ||
}, | ||
"zsh": { | ||
"path": "/usr/bin/zsh" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"initializeCommand": { | ||
"mkdir-aws": "mkdir -p ${localEnv:HOME}/.aws", | ||
"touch-zsh-history": "touch ${localEnv:HOME}/.zsh_history" | ||
}, | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "PLUGIN_PATH=~/.oh-my-zsh/custom/plugins/zsh-autosuggestions; if [ ! -d $PLUGIN_PATH ]; then git clone https://github.com/zsh-users/zsh-autosuggestions $PLUGIN_PATH; fi && sed -i'' -e 's/^plugins.*)/plugins=(git zsh-autosuggestions)/' ~/.zshrc", | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
"remoteUser": "root", | ||
|
||
"remoteEnv": { | ||
"NPM_TOKEN": "${localEnv:NPM_TOKEN}", | ||
"GH_TOKEN": "${localEnv:GH_TOKEN}", | ||
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}" | ||
}, | ||
|
||
"mounts": [ | ||
"source=${localEnv:HOME}/.aws,target=/root/.aws,type=bind", | ||
"source=${localEnv:HOME}/.zsh_history,target=/root/.zsh_history,type=bind" | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for more information: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
# https://containers.dev/guide/dependabot | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "devcontainers" | ||
directory: "/" | ||
schedule: | ||
interval: weekly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Lint, Build & Test | ||
|
||
on: | ||
push: | ||
branches: [$default-branch, main] | ||
pull_request: | ||
branches: [$default-branch, main] | ||
|
||
jobs: | ||
lint-build-test: | ||
name: Lint, Build & Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
- name: Install foundry | ||
run: | | ||
curl -L https://foundry.paradigm.xyz | bash && \ | ||
eval "$(sed -n '/foundry/p' ~/.bashrc)" && \ | ||
echo $PATH | tee -a $GITHUB_PATH | ||
- name: Install chain tools | ||
run: | | ||
foundryup | ||
- name: Yarn install | ||
run: | | ||
yarn install --immutable | ||
- name: Build | ||
run: | | ||
yarn build | ||
- name: Test | ||
run: | | ||
yarn test | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
build | ||
**/.aptos/ | ||
**/coverage/ | ||
.DS_Store | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# Next.js build output | ||
.next | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and *not* Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
#Hardhat files | ||
artifacts/ | ||
artifacts-zk/ | ||
hh-cache/ | ||
hh-cache-zk/ | ||
|
||
#foundry test compilation files | ||
cache | ||
out | ||
reference-out | ||
optimized-out | ||
reference-working | ||
|
||
# local ide | ||
.idea/ | ||
.vscode/ | ||
|
||
**/coverage.json | ||
packages/**/localhost | ||
packages/**/*-fork/ | ||
packages/**/*-local/ | ||
!packages/**/deployments/ethereum-sandbox-local/ | ||
!packages/**/deployments/polygon-sandbox-local/ | ||
apps/**/localhost | ||
apps/**/*-fork/ | ||
transactions.csv | ||
apps/**/*-local/ | ||
!apps/**/deployments/ethereum-sandbox-local/ | ||
!apps/**/deployments/polygon-sandbox-local/ | ||
|
||
# solana validator ledger | ||
packages/**/test-ledger/ | ||
|
||
.turbo | ||
|
||
# local files | ||
config/local/keys*.json | ||
config/local/keys*.yaml | ||
config/local/node-url*.json | ||
lcov.info | ||
coverage-html | ||
|
||
# https://yarnpkg.com/getting-started/qa | ||
.pnp.* | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
.snapshot/ | ||
.docker-compose/ | ||
|
||
solcInputs/ | ||
|
||
.envrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "lib/forge-std"] | ||
path = lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
...require('@layerzerolabs/prettier-config-next'), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extends: ['solhint:recommended', require.resolve('@layerzerolabs/solhint-config')], | ||
}; |
Oops, something went wrong.