Skip to content

Commit 36c2cb8

Browse files
authored
DEVREL-1154 feat(create-lz-oapp): update labels for OFT during setup (#1899)
1 parent ba9762f commit 36c2cb8

6 files changed

Lines changed: 16 additions & 25 deletions

File tree

.changeset/shiny-crabs-grin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-lz-oapp": patch
3+
---
4+
5+
relabel example labels for OFT and OFT (Solana)

examples/oft-solana/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
Create your local copy of this example:
5858

5959
```bash
60-
LZ_ENABLE_SOLANA_OFT_EXAMPLE=1 pnpm dlx create-lz-oapp@latest
60+
pnpm dlx create-lz-oapp@latest
6161
```
6262

6363
Specify the directory, select `OFT (Solana)` and proceed with the installation.

packages/create-lz-oapp/src/config.ts

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,16 @@ export const getExamples = (): Example[] => {
2525
directory: 'examples/oapp',
2626
ref,
2727
},
28+
{
29+
id: 'oft-solana',
30+
label: 'OFT - EVM, Solana',
31+
repository,
32+
directory: 'examples/oft-solana',
33+
ref,
34+
},
2835
{
2936
id: 'oft',
30-
label: 'OFT',
37+
label: 'OFT - EVM only',
3138
repository,
3239
directory: 'examples/oft',
3340
ref,
@@ -149,18 +156,6 @@ export const getExamples = (): Example[] => {
149156
},
150157
]
151158
: []),
152-
// The Solana OFT example is feature flagged for the time being
153-
...(process.env.LZ_ENABLE_SOLANA_OFT_EXAMPLE
154-
? [
155-
{
156-
id: 'oft-solana',
157-
label: 'OFT (Solana)',
158-
repository,
159-
directory: 'examples/oft-solana',
160-
ref,
161-
},
162-
]
163-
: []),
164159
...(process.env.LZ_ENABLE_SOLANA_OAPP_EXAMPLE
165160
? [
166161
{

packages/create-lz-oapp/test/config.test.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,7 @@ describe('config', () => {
4040
examples.forEach((example) => expect(example).toMatchObject({ ref: 'ohhello' }))
4141
})
4242

43-
it('should not include Solana OFT example if LZ_ENABLE_SOLANA_OFT_EXAMPLE is empty', () => {
44-
process.env.LZ_ENABLE_SOLANA_OFT_EXAMPLE = ''
45-
46-
expect(getExamples()).not.toContainEqual(expect.objectContaining({ id: 'oft-solana' }))
47-
})
48-
49-
it('should include Solana OFT example if LZ_ENABLE_SOLANA_OFT_EXAMPLE is defined', () => {
50-
process.env.LZ_ENABLE_SOLANA_OFT_EXAMPLE = 'yes'
51-
43+
it('should include Solana OFT example', () => {
5244
expect(getExamples()).toContainEqual(expect.objectContaining({ id: 'oft-solana' }))
5345
})
5446

tests-user/tests/create-lz-oapp.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ teardown() {
194194
@test "should work with pnpm & oft solana example in CI mode" {
195195
local DESTINATION="$PROJECTS_DIRECTORY/pnpm-oft-solana"
196196

197-
LZ_ENABLE_SOLANA_OFT_EXAMPLE=1 npx --yes create-lz-oapp --ci --example oft-solana --destination $DESTINATION --package-manager pnpm
197+
npx --yes create-lz-oapp --ci --example oft-solana --destination $DESTINATION --package-manager pnpm
198198
cd "$DESTINATION"
199199
pnpm compile
200200
pnpm test

turbo.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"LZ_ENABLE_EXPERIMENTAL_PARALLEL_EXECUTION",
5757
"LZ_ENABLE_EXPERIMENTAL_RETRY",
5858
"LZ_ENABLE_EXPERIMENTAL_SIMULATION",
59-
"LZ_ENABLE_SOLANA_OFT_EXAMPLE",
6059
"LZ_ENABLE_SOLANA_OAPP_EXAMPLE",
6160
"LZ_ENABLE_READ_EXAMPLE",
6261
"LZ_ENABLE_ZKSOLC_EXAMPLE",

0 commit comments

Comments
 (0)