Skip to content

Commit

Permalink
feat: init files
Browse files Browse the repository at this point in the history
  • Loading branch information
mok-lz committed Jun 5, 2024
1 parent 1f8c548 commit 150687f
Show file tree
Hide file tree
Showing 53 changed files with 5,729 additions and 1 deletion.
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 .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')],
};
893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.2.cjs

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
compressionLevel: mixed

enableGlobalCache: true
globalFolder: .yarn/berry

nodeLinker: node-modules

unsafeHttpWhitelist:
- localhost

npmRegistries:
"//localhost:4873":
npmAuthToken: "${LOCAL_NPM_TOKEN-}"
//registry.npmjs.org:
npmAuthToken: "${NPM_TOKEN-}"

npmScopes:
layerzerolabs:
npmAlwaysAuth: true
npmPublishRegistry: "${NPM_REGISTRY-https://registry.npmjs.org}"
npmRegistryServer: "${NPM_REGISTRY-https://registry.npmjs.org}"

yarnPath: .yarn/releases/yarn-4.0.2.cjs
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
# example-oft
<div align="center">
<a href="https://layerzero.network">
<img alt="LayerZero" style="width: 20%" src="https://layerzero.network/static/logo.svg"/>
</a>

<h1>LayerZero OFT</h1>

<p>
<strong>Omnichain Fungible Token</strong>
</p>

<p>
<a href="https://docs.layerzero.network/v2"><img alt="Tutorials" src="https://img.shields.io/badge/docs-tutorials-blueviolet" /></a>
</p>
</div>

LayerZero OFT is xxxx

[Audit Reports](https://github.com/LayerZero-Labs/Audits)

## Build & Test

```bash
yarn && yarn build && yarn test
```
25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "@layerzerolabs/oft",
"version": "0.0.1",
"private": true,
"workspaces": [
"packages/**"
],
"scripts": {
"build": "$npm_execpath workspaces foreach --all run build",
"clean": "$npm_execpath workspaces foreach --all run clean",
"test": "$npm_execpath workspaces foreach --all run test"
},
"devDependencies": {
"@layerzerolabs/prettier-config-next": "^2.0.1",
"@layerzerolabs/solhint-config": "^2.0.1",
"prettier": "^3.1.0",
"rimraf": "^5.0.5",
"solhint": "^4.0.0",
"typescript": "^4.3.5"
},
"packageManager": "[email protected]",
"engines": {
"node": ">=18.12.0"
}
}
1 change: 1 addition & 0 deletions packages/evm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# EVM
8 changes: 8 additions & 0 deletions packages/solana/contracts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

.anchor
.DS_Store
target
**/*.rs.bk
node_modules
test-ledger
.yarn
8 changes: 8 additions & 0 deletions packages/solana/contracts/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

.anchor
.DS_Store
target
node_modules
dist
build
test-ledger
20 changes: 20 additions & 0 deletions packages/solana/contracts/Anchor.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[toolchain]
anchor_version = "0.29.0"
solana_version = "1.17.31"

[features]
seeds = false
skip-lint = false

[programs.localnet]
oft = "HRPXLCqspQocTjfcX4rvAPaY9q6Gwb1rrD3xXWrfJWdW"

[registry]
url = "https://api.apr.dev"

[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"

[scripts]
test = "yarn run ts-mocha -b -p ./tsconfig.json -t 1000000 tests/**/*.test.ts"
Loading

0 comments on commit 150687f

Please sign in to comment.