@dynamic-labs/solana
Advanced tools
Comparing version 0.17.0-RC.16 to 0.17.0-RC.17
{ | ||
"name": "@dynamic-labs/solana", | ||
"version": "0.17.0-RC.16", | ||
"version": "0.17.0-RC.17", | ||
"repository": { | ||
@@ -30,8 +30,8 @@ "type": "git", | ||
"@solana/web3.js": "1.70.1", | ||
"@dynamic-labs/rpc-providers": "0.17.0-RC.16", | ||
"@dynamic-labs/types": "0.17.0-RC.16", | ||
"@dynamic-labs/utils": "0.17.0-RC.16", | ||
"@dynamic-labs/wallet-connector-core": "0.17.0-RC.16" | ||
"@dynamic-labs/rpc-providers": "0.17.0-RC.17", | ||
"@dynamic-labs/types": "0.17.0-RC.17", | ||
"@dynamic-labs/utils": "0.17.0-RC.17", | ||
"@dynamic-labs/wallet-connector-core": "0.17.0-RC.17" | ||
}, | ||
"peerDependencies": {} | ||
} |
@@ -0,1 +1,2 @@ | ||
import { WalletEventListeners } from '@dynamic-labs/wallet-connector-core'; | ||
import { SolWalletConnector } from './solWalletConnector'; | ||
@@ -11,2 +12,4 @@ import { ISolana } from './types'; | ||
getConnectedAccounts(): Promise<string[]>; | ||
setupEventListeners(listeners: WalletEventListeners): void; | ||
teardownEventListeners(): void; | ||
} |
@@ -60,4 +60,10 @@ import { __awaiter } from '../_virtual/_tslib.js'; | ||
} | ||
setupEventListeners(listeners) { | ||
SolProviderHelper._setupEventListeners(listeners, SolProviderHelper.findProvider(this.name)); | ||
} | ||
teardownEventListeners() { | ||
SolProviderHelper._teardownEventListeners(this.name); | ||
} | ||
} | ||
export { Solflare }; |
@@ -104,2 +104,3 @@ import { __awaiter } from '../_virtual/_tslib.js'; | ||
static getConnectedAccountsWithName(name) { | ||
var _b, _c; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -119,3 +120,5 @@ const provider = this.findProvider(name); | ||
} | ||
const { address, publicKey } = connectionResult !== null && connectionResult !== void 0 ? connectionResult : {}; | ||
const address = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.address; | ||
// Solflare does not return the address or public key on connect | ||
const publicKey = (_b = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.publicKey) !== null && _b !== void 0 ? _b : (_c = provider.publicKey) === null || _c === void 0 ? void 0 : _c.toString(); | ||
if (address) { | ||
@@ -122,0 +125,0 @@ return [address]; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
147610
1609
+ Added@dynamic-labs/logger@0.17.0-RC.17(transitive)
+ Added@dynamic-labs/rpc-providers@0.17.0-RC.17(transitive)
+ Added@dynamic-labs/sdk-api@0.0.195(transitive)
+ Added@dynamic-labs/types@0.17.0-RC.17(transitive)
+ Added@dynamic-labs/utils@0.17.0-RC.17(transitive)
+ Added@dynamic-labs/wallet-connector-core@0.17.0-RC.17(transitive)
- Removed@dynamic-labs/logger@0.17.0-RC.16(transitive)
- Removed@dynamic-labs/rpc-providers@0.17.0-RC.16(transitive)
- Removed@dynamic-labs/sdk-api@0.0.192(transitive)
- Removed@dynamic-labs/types@0.17.0-RC.16(transitive)
- Removed@dynamic-labs/utils@0.17.0-RC.16(transitive)
- Removed@dynamic-labs/wallet-connector-core@0.17.0-RC.16(transitive)