Skip to content

Commit

Permalink
Merge pull request #105 from nightly-labs/move_apps_to_packages
Browse files Browse the repository at this point in the history
add: move connect folders from apps to packages
  • Loading branch information
LukassF authored Feb 29, 2024
2 parents 1d79304 + 05a5b22 commit 147e75c
Show file tree
Hide file tree
Showing 53 changed files with 266 additions and 263 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/connect-test-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ jobs:
- name: test solana local
run: |
pnpm test:ci
working-directory: ./sdk/apps/solana
working-directory: ./sdk/packages/solana
- name: test sui local
run: |
pnpm test:ci
working-directory: ./sdk/apps/sui
working-directory: ./sdk/packages/sui
- name: Clean target
working-directory: ./infra
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/connect-test-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
- name: test solana production
run: |
pnpm test:production
working-directory: ./sdk/apps/solana
working-directory: ./sdk/packages/solana
- name: test sui production
run: |
pnpm test:production
working-directory: ./sdk/apps/sui
working-directory: ./sdk/packages/sui
4 changes: 2 additions & 2 deletions sdk/apps/modal-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"@nightlylabs/nightly-connect-solana": "0.0.29",
"@nightlylabs/nightly-connect-sui": "0.0.29",
"@nightlylabs/wallet-selector-sui": "0.3.0",
"@nightlylabs/nightly-connect-polkadot": "0.0.14",
"@nightlylabs/wallet-selector-polkadot": "0.2.2",
"@nightlylabs/nightly-connect-polkadot": "0.0.15",
"@nightlylabs/wallet-selector-polkadot": "0.2.3",
"@nightlylabs/wallet-selector-base": "^0.4.0",
"@polkadot/extension-inject": "^0.46.5",
"@polkadot/api": "^10.10.1",
Expand Down
2 changes: 1 addition & 1 deletion sdk/apps/modal-example/src/routes/externalModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function SolanaExternalModal() {
setPublicKey(pk)
})
adapter.on('change', (a) => {
if (a.accounts) {
if (!!a.accounts?.length && a.accounts[0].publicKey) {
setPublicKey(new PublicKey(a.accounts[0].publicKey))
}
})
Expand Down
2 changes: 1 addition & 1 deletion sdk/apps/modal-example/src/routes/solana.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function Solana() {
setPublicKey(undefined)
})
adapter.on('change', (a) => {
if (a.accounts) {
if (!!a.accounts?.length && a.accounts[0].publicKey) {
setPublicKey(new PublicKey(a.accounts[0].publicKey))
}
})
Expand Down
2 changes: 1 addition & 1 deletion sdk/apps/modal-example/src/routes/sui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function Sui() {
})

adapter.on('change', (a) => {
if (a.accounts) {
if (!!a.accounts?.length && a.accounts[0].address) {
setPublicKey(a.accounts[0].address)
}
})
Expand Down
2 changes: 1 addition & 1 deletion sdk/apps/modal-example/src/routes/suiInitOnConnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function Sui() {
})

adapter.on('change', (a) => {
if (a.accounts) {
if (!!a.accounts?.length && a.accounts[0].address) {
setPublicKey(a.accounts[0].address)
}
})
Expand Down
4 changes: 2 additions & 2 deletions sdk/build-only-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ cd ./apps/base
pnpm build

# connect networks
cd ../solana
cd ../../packages/solana
pnpm build
cd ../sui
pnpm build
cd ../polkadot
pnpm build
# ui packages
cd ../../packages/qr-codes
cd ../qr-codes
pnpm build
cd ../modal
pnpm build
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@
"eventemitter3": "^5.0.1",
"uuid": "^9.0.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default [
]
},
{
input: 'dist/types/apps/polkadot/src/index.d.ts',
input: 'dist/types/packages/polkadot/src/index.d.ts',
output: [{ file: 'dist/index.d.ts', format: 'esm' }],
plugins: [dts()]
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion sdk/packages/selector-polkadot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
"tslib": "^2.5.3",
"typescript": "^5.1.3"
}
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@
"eventemitter3": "^5.0.1",
"uuid": "^9.0.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default [
]
},
{
input: 'dist/types/apps/solana/src/index.d.ts',
input: 'dist/types/packages/solana/src/index.d.ts',
output: [{ file: 'dist/index.d.ts', format: 'esm' }],
plugins: [dts()]
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
"eventemitter3": "^5.0.1",
"uuid": "^9.0.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default [
]
},
{
input: 'dist/types/apps/sui/src/index.d.ts',
input: 'dist/types/packages/sui/src/index.d.ts',
output: [{ file: 'dist/index.d.ts', format: 'esm' }],
plugins: [dts()]
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 147e75c

Please sign in to comment.