Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🗞️ Add composer swap examples #1097

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
15 changes: 15 additions & 0 deletions examples/oft-composer-library/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
#
# 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
MNEMONIC=
PRIVATE_KEY=
10 changes: 10 additions & 0 deletions examples/oft-composer-library/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
artifacts
cache
dist
node_modules
out
*.log
*.sol
*.yaml
*.lock
package-lock.json
10 changes: 10 additions & 0 deletions examples/oft-composer-library/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require('@rushstack/eslint-patch/modern-module-resolution');

module.exports = {
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',
},
};
24 changes: 24 additions & 0 deletions examples/oft-composer-library/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
node_modules
.env
coverage
coverage.json
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
1 change: 1 addition & 0 deletions examples/oft-composer-library/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.18.0
10 changes: 10 additions & 0 deletions examples/oft-composer-library/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
artifacts/
cache/
dist/
node_modules/
out/
*.log
*ignore
*.yaml
*.lock
package-lock.json
3 changes: 3 additions & 0 deletions examples/oft-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'),
};
270 changes: 270 additions & 0 deletions examples/oft-composer-library/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,270 @@
# @layerzerolabs/oft-example

## 0.5.1

### Patch Changes

- 447af65: Use concurrently for parallel compilation task

## 0.5.0

### Minor Changes

- e2395b5: Add OApp Read Example

## 0.4.0

### Minor Changes

- aa37daf: Update layerzerolabs packages to 3.0.12

## 0.3.1

### Patch Changes

- 9ab480a: foundry.toml QOL improvements

## 0.3.0

### Minor Changes

- b4a12d3: Update hardhat runtime environment factory to match the new environment constuctor

## 0.2.15

### Patch Changes

- 893ad66: Update @LayerZero-Labs dependencies to 2.3.39

## 0.2.14

### Patch Changes

- d126c52: Update monorepo dependencies and typescript version

## 0.2.13

### Patch Changes

- 40aebd3: Fix avalanche-testnet url

## 0.2.12

### Patch Changes

- 218ab72: OpenZeppelin Contracts/Contracts-Upgradeable Upgraded to 5.0.2

## 0.2.11

### Patch Changes

- 658ba47: Update to use @layerzerolabs/oapp-evm

## 0.2.10

### Patch Changes

- 7c4b031: Fix network name suffix in examples

## 0.2.9

### Patch Changes

- d2ff651: Use @layerzerolabs/oft-evm OFT version

## 0.2.8

### Patch Changes

- 141d067: Update cache paths

## 0.2.7

### Patch Changes

- 3ec2912: Fixing changeset race condition in the PR's updating them all
- 58cbd3e: Update to latest lz dependencies

## 0.2.6

### Patch Changes

- 938ac3d: Improve error reporting on UIntBigIntSchema

## 0.2.5

### Patch Changes

- f865318: Update @LayerZero-Labs dependencies to 2.3.3

## 0.2.4

### Patch Changes

- 835cdbe: Replace Mumbai with Amoy

## 0.2.3

### Patch Changes

- e16c864: Update @LayerZero-Labs dependencies to 2.1.27
- e16c864: Update executor config schema & types after update to 2.1.27

## 0.2.2

### Patch Changes

- c09680a: Update @LayerZero-Labs dependencies to 2.1.25
- c09680a: Add eslint-plugin-jest-extended to examples

## 0.2.1

### Patch Changes

- a6f2fef: Re-export useful types from toolbox-hardhat

## 0.2.0

### Minor Changes

- a4093ab: Adapt LayerZero package updates, including OApp version 2

## 0.1.10

### Patch Changes

- ff6427c: Update @LayerZero-Labs dependencies to 2.1.18

## 0.1.9

### Patch Changes

- a5c185f: Take RPC URLs from the environment in the examples

## 0.1.8

### Patch Changes

- 54cf16e: Silence bigint-buffer warning

## 0.1.7

### Patch Changes

- e7ef1aa: Update @layerzero-labs dependencies to 2.1.15

## 0.1.6

### Patch Changes

- b93a018: Update @layerzero-labs dependencies to 2.1.13

## 0.1.5

### Patch Changes

- 855fa36: Update to latest layerzerolabsmonorepo dependencies

## 0.1.4

### Patch Changes

- c6e3b45: Lock versions of ethers & @openzeppelin/contracts in packages; Put pnpm first in create-lz-oapp

## 0.1.3

### Patch Changes

- 491b5a5: Upgrade contract Dependencies to 2.1.7

## 0.1.2

### Patch Changes

- c8f1739: Fix OFT example tests

## 0.1.1

### Patch Changes

- 71e355c: Update "@layerzerolabs/\*" dependencies

## 0.1.0

### Minor Changes

- 6e464f2: Specify EndpointV2 with the "V2" suffix wherever appropriate

## 0.0.12

### Patch Changes

- 8227742: Update @layerzero-labs dependencies to 2.1.4
- 9996f00: Updated Readmes and the example rpcs used in createLZOApp

## 0.0.11

### Patch Changes

- 2007d55: Update example configs; Use dotenv in examples; Use layerzero.config without an extension as a default value for --oapp-config

## 0.0.10

### Patch Changes

- 151a92e: Improve error handling and introduce node engine specifiers

## 0.0.9

### Patch Changes

- 5c58d69: Update @layerzerolabs dependencies to 2.1.3

## 0.0.8

### Patch Changes

- f0036c5: Use monorepo 2.1.2 released dependencies

## 0.0.7

### Patch Changes

- 7aaf750: Fix compile & tests scripts for npm

## 0.0.6

### Patch Changes

- 0877186: Update @layerzerolabs dependencies to 2.0.25 and 2.0.26-rc1

## 0.0.5

### Patch Changes

- 1e375c9: Adding EVM testing abilities for hardhat and foundry

## 0.0.4

### Patch Changes

- af8cc25: Update dependencies

## 0.0.3

### Patch Changes

- 73b37d0: Include solidity-bytes-utils in toolbox-foundry

## 0.0.2

### Patch Changes

- 6483544: Update dependency versions
- 70646b4: Add missing dependencies

## 0.0.1

### Patch Changes

- b74afbe: Initial 0.0.1 version
Loading
Loading