Skip to content

Commit

Permalink
chore: rearrange create-lz-oapp selections
Browse files Browse the repository at this point in the history
Change the selection options available via feature flag and exposed by default within create-lz-oapp
  • Loading branch information
St0rmBr3w authored Nov 21, 2024
1 parent ed49d7d commit 0b0f06a
Showing 1 changed file with 38 additions and 20 deletions.
58 changes: 38 additions & 20 deletions packages/create-lz-oapp/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ export const getExamples = (): Example[] => {
const ref = process.env.LAYERZERO_EXAMPLES_REPOSITORY_REF || ''

return [
{
id: 'oft',
label: 'OFT',
repository,
directory: 'examples/oft',
ref,
},
{
id: 'oapp',
label: 'OApp',
Expand All @@ -33,10 +26,10 @@ export const getExamples = (): Example[] => {
ref,
},
{
id: 'onft721',
label: 'ONFT721',
id: 'oft',
label: 'OFT',
repository,
directory: 'examples/onft721',
directory: 'examples/oft',
ref,
},
{
Expand All @@ -47,19 +40,44 @@ export const getExamples = (): Example[] => {
ref,
},
{
id: 'native-oft-adapter',
label: 'NativeOFTAdapter',
repository,
directory: 'examples/native-oft-adapter',
ref,
},
{
id: 'oft-upgradeable',
label: 'Upgradeable OFT',
id: 'onft721',
label: 'ONFT721',
repository,
directory: 'examples/oft-upgradeable',
directory: 'examples/onft721',
ref,
},
// ZK-Solc examples are feature flagged for the time being
...(process.env.LZ_ENABLE_ZKSOLC_EXAMPLE
? [
{ id: 'onft721-zksync', label: 'ONFT721 zksolc', repository, directory: 'examples/onft721-zksync', ref },
]
: []),
// Upgradeable contract examples are feature flagged for the time being
...(process.env.LZ_ENABLE_UPGRADEABLE_EXAMPLE
? [
{ id: 'oft-upgradeable', label: 'UpgradeableOFT', repository, directory: 'examples/oft-upgradeable', ref },
{
id: 'uniswap-read',
label: 'UniswapV3 Quote',
repository,
directory: 'examples/uniswap-read',
ref,
},
]
: []),
// Native OFT Adapter example is feature flagged for the time being
...(process.env.LZ_ENABLE_NATIVE_EXAMPLE
? [
{ id: 'native-oft-adapter', label: 'NativeOFTAdapter', repository, directory: 'examples/native-oft-adapter', ref },
{
id: 'uniswap-read',
label: 'UniswapV3 Quote',
repository,
directory: 'examples/uniswap-read',
ref,
},
]
: []),
// OApp Read examples are feature flagged for the time being
...(process.env.LZ_ENABLE_READ_EXAMPLE
? [
Expand Down

0 comments on commit 0b0f06a

Please sign in to comment.