Skip to content

Commit

Permalink
LayerZero v2 Contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
zouguangxian committed Dec 14, 2023
0 parents commit 3bb90c5
Show file tree
Hide file tree
Showing 195 changed files with 31,982 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lint-build-test.yaml
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
167 changes: 167 additions & 0 deletions .gitignore
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
3 changes: 3 additions & 0 deletions .gitmodules
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
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
...require('@layerzerolabs/prettier-config-next'),
};
3 changes: 3 additions & 0 deletions .solhintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['solhint:recommended', require.resolve('@layerzerolabs/solhint-config')],
};
Loading

0 comments on commit 3bb90c5

Please sign in to comment.