Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
35 changes: 35 additions & 0 deletions examples/oft-main/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
#
# Example environment configuration
#
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'

# EVM Variables
# By default, the examples support both mnemonic-based and private key-based authentication
# You don't need to set both of these values, just pick the one that you prefer and set that one
MNEMONIC=
# Private key for EVM contract owner/delegate
PRIVATE_KEY=

# Solana Variables
SOLANA_PRIVATE_KEY=
SOLANA_KEYPAIR_PATH=
# By default, the Solana example will use the default cluster RPC URL if no other value is provided
RPC_URL_SOLANA=
RPC_URL_SOLANA_TESTNET=

# Sui Variables
SUI_PRIVATE_KEY=
RPC_URL_SUI=
RPC_URL_SUI_TESTNET=

# Starknet Variables
# NOTE: Starknet needs the account contract address (not the public key) + private key.
STARKNET_ACCOUNT_ADDRESS=
STARKNET_PRIVATE_KEY=
RPC_URL_STARKNET=
RPC_URL_STARKNET_TESTNET=
13 changes: 13 additions & 0 deletions examples/oft-main/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.anchor
.turbo
node_modules
target
artifacts
cache
dist
out
*.log
*.sol
*.yaml
*.lock
package-lock.json
12 changes: 12 additions & 0 deletions examples/oft-main/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
require('@rushstack/eslint-patch/modern-module-resolution');

module.exports = {
root: true,
extends: ['@layerzerolabs/eslint-config-next/recommended'],
rules: {
// @layerzerolabs/eslint-config-next defines rules for turborepo-based projects
// that are not relevant for this particular project
'turbo/no-undeclared-env-vars': 'off',
'import/no-unresolved': 'warn',
},
};
44 changes: 44 additions & 0 deletions examples/oft-main/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.anchor
node_modules
.env
coverage
coverage.json
target
typechain
typechain-types

# Hardhat files
cache
artifacts

# LayerZero specific files
.layerzero

# foundry test compilation files
out

# pnpm
pnpm-error.log

# Editor and OS files
.DS_Store
.idea

# Deployment artifacts (user-specific, created during deploy)
deployments/

# Sui build artifacts and deployment info
sui/*/build/
sui/deploy.json
sui/**/oft_deploy.json
sui/**/token_deploy.json

# Starknet deployment info
starknet/deploy.json

# Aptos deployment info
aptos/deploy.json

# Move build artifacts
build/
.aptos/
1 change: 1 addition & 0 deletions examples/oft-main/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.19.5
14 changes: 14 additions & 0 deletions examples/oft-main/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.anchor
.turbo
node_modules/
target
artifacts/
cache/
dist/
out/
*.log
*ignore
*.yaml
*.lock
package-lock.json
package.json
3 changes: 3 additions & 0 deletions examples/oft-main/.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 examples/oft-main/.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')],
};
20 changes: 20 additions & 0 deletions examples/oft-main/Anchor.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[toolchain]
anchor_version = "0.31.1"

[features]
seeds = false
resolution = false
skip-lint = false

[programs.localnet]
oft = "G2BYTnfGCMQAErMZkTBCFSapKevzf6QCjizjXi8hFEtJ"

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

[provider]
cluster = "Localnet"
wallet = "./junk-id.json"

[scripts]
test = "npx jest test/anchor"
Loading
Loading