Skip to content
Draft
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
22 changes: 22 additions & 0 deletions examples/oft-solana-composer-library/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
#
# Example environment configuration
#
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'

# 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
#
# By default, the Solana example will use the default cluster RPC URL if no other value is provided
# For SOLANA_PRIVATE_KEY use base58 encoding
MNEMONIC=
PRIVATE_KEY= # Private key for EVM contract owner/delegate
SOLANA_PRIVATE_KEY=
SOLANA_KEYPAIR_PATH=
RPC_URL_SOLANA=
RPC_URL_SOLANA_TESTNET=
13 changes: 13 additions & 0 deletions examples/oft-solana-composer-library/.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-solana-composer-library/.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',
},
};
29 changes: 29 additions & 0 deletions examples/oft-solana-composer-library/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.anchor
node_modules
.env
coverage
coverage.json
target
typechain
typechain-types
wallet.json
keypair.json
secret.txt

# Hardhat files
cache
artifacts


# LayerZero specific files
.layerzero

# foundry test compilation files
out

# pnpm
pnpm-error.log

# Editor and OS files
.DS_Store
.idea
1 change: 1 addition & 0 deletions examples/oft-solana-composer-library/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.19.0
13 changes: 13 additions & 0 deletions examples/oft-solana-composer-library/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.anchor
.turbo
node_modules/
target
artifacts/
cache/
dist/
out/
*.log
*ignore
*.yaml
*.lock
package-lock.json
3 changes: 3 additions & 0 deletions examples/oft-solana-composer-library/.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-solana-composer-library/.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')],
};
64 changes: 64 additions & 0 deletions examples/oft-solana-composer-library/Anchor.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[toolchain]
anchor_version = "0.29.0"

[features]
seeds = false
skip-lint = false

[programs.localnet]
composer = "6xhpdhwyzpjxc6n2KqQS8a3W7Busn6nqGYaobVV25kN5"
oft = "HipE7QwWtLyDTQNP61dEqGN8JNjUUzCMsUxpxRQMoeYx"

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

[provider]
cluster = "Localnet"
wallet = "./keypair.json"

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

[test]
startup_wait = 5000
shutdown_wait = 2000
upgradeable = false

[test.validator]
bind_address = "0.0.0.0"
url = "https://api.mainnet-beta.solana.com"
ledger = ".anchor/test-ledger"
rpc_port = 8899

[[test.validator.clone]]
address = "CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK"

[[test.validator.clone]]
address = "9iFER3bpjf1PTTCQCfTRu17EJgvsxo9pVyA9QWwEuX4x"

[[test.validator.clone]]
address = "D2bXjvT1xDiymTeX2mHqf9WGHkSVr2hPoHJiEg2jfVjL"

[[test.validator.clone]]
address = "Cv3s57YQzJRp988qvXPfZN5xX7BUFcgB1ycA9jzSrh2n"

[[test.validator.clone]]
address = "J1jEbmdbtsfA26igi1ryQjejnYVQRpxnobZh9tgSaH1h"

[[test.validator.clone]]
address = "8AQHmKsoFh5Uh8bzYnnQ4Fx2QL2axPao9hjnt1YQBvdS"

[[test.validator.clone]]
address = "3ZUDGLF7xw26gcXUhZK3tL4MU2VizCUkXoHdb2LQ4zDM"

[[test.validator.clone]]
address = "5Nb7bdyi4jkMdA8Xqmt72HS1fpkGRQ573Gf8PJeGunsy"

[[test.validator.clone]]
address = "sUfgz2jsDhN8qn1PrkWr9pVnUrLqqL1yB7WAnCj62Xz"

[[test.validator.clone]]
address = "DEkqHyPN7GMRJ5cArtQFAWefqbZb33Hyf6s5iCwjEonT"

[[test.validator.clone]]
address = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
Loading