Skip to content

Commit

Permalink
bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
awojciak committed Aug 10, 2023
1 parent a15ee73 commit 36921e9
Show file tree
Hide file tree
Showing 12 changed files with 84 additions and 57 deletions.
2 changes: 1 addition & 1 deletion sdk/apps/base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nightlylabs/nightly-connect-base",
"version": "0.0.21",
"version": "0.0.22",
"type": "module",
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion sdk/apps/modal-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@nightlylabs/nightly-connect-solana": "0.0.23",
"@nightlylabs/nightly-connect-sui": "0.0.22",
"@nightlylabs/wallet-selector-sui": "0.1.3",
"@nightlylabs/nightly-connect-polkadot": "0.0.1",
"@nightlylabs/nightly-connect-polkadot": "0.0.2",
"@nightlylabs/wallet-selector-polkadot": "0.0.1",
"@polkadot/extension-inject": "^0.46.5",
"@polkadot/api": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions sdk/apps/polkadot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nightlylabs/nightly-connect-polkadot",
"version": "0.0.1",
"version": "0.0.2",
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -45,7 +45,7 @@
"@polkadot/keyring": "^12.3.2"
},
"dependencies": {
"@nightlylabs/nightly-connect-base": "0.0.21",
"@nightlylabs/nightly-connect-base": "0.0.22",
"@polkadot/api": "^10.9.1",
"@polkadot/types": "^10.9.1",
"@polkadot/util": "^12.3.2",
Expand Down
2 changes: 1 addition & 1 deletion sdk/apps/solana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"typescript": "^5.1.3"
},
"dependencies": {
"@nightlylabs/nightly-connect-base": "0.0.21",
"@nightlylabs/nightly-connect-base": "0.0.22",
"@solana/web3.js": "^1.77.2",
"eventemitter3": "^5.0.1",
"uuid": "^9.0.0"
Expand Down
2 changes: 1 addition & 1 deletion sdk/apps/sui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"dependencies": {
"@mysten/sui.js": "^0.37.1",
"@mysten/wallet-standard": "^0.5.12",
"@nightlylabs/nightly-connect-base": "0.0.21",
"@nightlylabs/nightly-connect-base": "0.0.22",
"@noble/hashes": "^1.3.0",
"eventemitter3": "^5.0.1",
"uuid": "^9.0.0"
Expand Down
4 changes: 2 additions & 2 deletions sdk/packages/selector-base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nightlylabs/wallet-selector-base",
"version": "0.1.2",
"version": "0.1.3",
"description": "",
"type": "module",
"exports": {
Expand All @@ -23,7 +23,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@nightlylabs/nightly-connect-base": "0.0.21",
"@nightlylabs/nightly-connect-base": "0.0.22",
"@nightlylabs/wallet-selector-modal": "0.0.12",
"@wallet-standard/core": "^1.0.3",
"isomorphic-localstorage": "^1.0.2"
Expand Down
9 changes: 4 additions & 5 deletions sdk/packages/selector-polkadot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@
"author": "",
"license": "ISC",
"dependencies": {
"@nightlylabs/nightly-connect-polkadot": "0.0.1",
"@nightlylabs/wallet-selector-base": "0.1.2",
"@solana/wallet-adapter-base": "^0.9.22",
"@nightlylabs/nightly-connect-polkadot": "0.0.2",
"@nightlylabs/wallet-selector-base": "0.1.3",
"@polkadot/extension-inject": "0.46.5",
"@polkadot/api": "10.9.1",
"@wallet-standard/core": "^1.0.3"
},
"devDependencies": {
"@polkadot/extension-inject": "0.46.5",
"@polkadot/api": "10.9.1",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-terser": "^0.4.3",
Expand Down
3 changes: 2 additions & 1 deletion sdk/packages/selector-polkadot/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export default [
external: [
'@nightlylabs/nightly-connect-polkadot',
'@nightlylabs/wallet-selector-base',
'@solana/wallet-adapter-base',
'@polkadot/extension-inject',
'@polkadot/api',
'@wallet-standard/core'
]
},
Expand Down
7 changes: 3 additions & 4 deletions sdk/packages/selector-polkadot/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {

import { type Signer as InjectedSigner } from '@polkadot/api/types'
import { type Injected } from '@polkadot/extension-inject/types'
import { WalletNotReadyError, WalletWindowClosedError } from '@solana/wallet-adapter-base'
import { IPolkadotWalletListItem, getPolkadotWalletsList } from './detection'
import { networkToData, SupportedNetworks } from './utils'
export type AppSelectorInitialize = Omit<AppPolkadotInitialize, 'network'> & {
Expand Down Expand Up @@ -363,12 +362,12 @@ export class NightlyConnectAdapter implements Injected {
}

if (this._loading) {
throw new WalletNotReadyError()
throw new Error('Wallet not ready')
}
}

if (!this._app) {
throw new WalletNotReadyError()
throw new Error('Wallet not ready')
}

if (this.connected || this.connecting) {
Expand Down Expand Up @@ -416,7 +415,7 @@ export class NightlyConnectAdapter implements Injected {
this._modal._onClose = () => {
if (this._connecting) {
this._connecting = false
const error = new WalletWindowClosedError()
const error = new Error('Connection cancelled')
reject(error)
}
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/packages/selector-solana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"license": "ISC",
"dependencies": {
"@nightlylabs/nightly-connect-solana": "0.0.23",
"@nightlylabs/wallet-selector-base": "0.1.2",
"@nightlylabs/wallet-selector-base": "0.1.3",
"@solana/wallet-adapter-base": "^0.9.22",
"@solana/wallet-standard": "^1.0.2",
"@solana/web3.js": "^1.77.2",
Expand Down
2 changes: 1 addition & 1 deletion sdk/packages/selector-sui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@mysten/wallet-standard": "^0.5.12",
"@mysten/wallet-adapter-base": "^0.7.12",
"@nightlylabs/nightly-connect-sui": "0.0.22",
"@nightlylabs/wallet-selector-base": "0.1.2",
"@nightlylabs/wallet-selector-base": "0.1.3",
"@wallet-standard/core": "^1.0.3",
"bs58": "^4.0.1",
"events": "^3.3.0"
Expand Down
Loading

0 comments on commit 36921e9

Please sign in to comment.