@dynamic-labs/wallet-connector-core 4.37.0 → 4.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/WalletConnectorBase/types.cjs +8 -7
- package/src/WalletConnectorBase/types.d.ts +1 -1
- package/src/WalletConnectorBase/types.js +8 -7
- package/src/interfaces/IDynamicWaasConnector.d.ts +4 -0
- package/src/utils/getChainInfo/getChainInfo.cjs +18 -66
- package/src/utils/getChainInfo/getChainInfo.d.ts +1 -1
- package/src/utils/getChainInfo/getChainInfo.js +18 -66
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.37.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.37.1...v4.37.2) (2025-10-13)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add get all linked social accounts function ([#9676](https://github.com/dynamic-labs/dynamic-auth/issues/9676)) ([c637c3f](https://github.com/dynamic-labs/dynamic-auth/commit/c637c3f101ea9387584473e18ff728c17d000f73))
|
|
8
|
+
* add revoke delegation to connectors and hook ([#9628](https://github.com/dynamic-labs/dynamic-auth/issues/9628)) ([00a40e0](https://github.com/dynamic-labs/dynamic-auth/commit/00a40e0b2aa6137a97ccb3be7890326300582fcf))
|
|
9
|
+
* **react-native:** add methods to social module ([#9677](https://github.com/dynamic-labs/dynamic-auth/issues/9677)) ([e4ffc11](https://github.com/dynamic-labs/dynamic-auth/commit/e4ffc1139ddc49826da688857d20dfb3b0c77ad7))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* duplicate wallet display for wallet upgrade ([#9684](https://github.com/dynamic-labs/dynamic-auth/issues/9684)) ([cf94223](https://github.com/dynamic-labs/dynamic-auth/commit/cf94223d91f74add454901b72f4bf7d81043bffc))
|
|
15
|
+
* fixes postbuild oom ([#9664](https://github.com/dynamic-labs/dynamic-auth/issues/9664)) ([7e56047](https://github.com/dynamic-labs/dynamic-auth/commit/7e5604721d708e375c642223cd2f615ab9191f70))
|
|
16
|
+
|
|
17
|
+
### [4.37.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.37.0...v4.37.1) (2025-10-08)
|
|
18
|
+
|
|
2
19
|
## [4.37.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.36.1...v4.37.0) (2025-10-08)
|
|
3
20
|
|
|
4
21
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-connector-core",
|
|
3
|
-
"version": "4.37.
|
|
3
|
+
"version": "4.37.2",
|
|
4
4
|
"description": "Core package for utilities and types for handling multiple wallet/chain support Dynamic SDK",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
22
|
-
"@dynamic-labs/assert-package-version": "4.37.
|
|
23
|
-
"@dynamic-labs/logger": "4.37.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.37.
|
|
25
|
-
"@dynamic-labs/types": "4.37.
|
|
26
|
-
"@dynamic-labs/utils": "4.37.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.37.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.805",
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.37.2",
|
|
23
|
+
"@dynamic-labs/logger": "4.37.2",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.37.2",
|
|
25
|
+
"@dynamic-labs/types": "4.37.2",
|
|
26
|
+
"@dynamic-labs/utils": "4.37.2",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.37.2",
|
|
28
28
|
"eventemitter3": "5.0.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
|
@@ -4,18 +4,19 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
const Chains = [
|
|
7
|
-
'ETH',
|
|
8
|
-
'FLOW',
|
|
9
|
-
'SOL',
|
|
10
|
-
'EVM',
|
|
11
7
|
'ALGO',
|
|
12
|
-
'
|
|
8
|
+
'APTOS',
|
|
13
9
|
'ATOM',
|
|
14
|
-
'COSMOS',
|
|
15
10
|
'BTC',
|
|
11
|
+
'COSMOS',
|
|
16
12
|
'ECLIPSE',
|
|
17
|
-
'
|
|
13
|
+
'ETH',
|
|
14
|
+
'EVM',
|
|
15
|
+
'FLOW',
|
|
16
|
+
'SOL',
|
|
18
17
|
'SPARK',
|
|
18
|
+
'STARK',
|
|
19
|
+
'SUI',
|
|
19
20
|
'TRON',
|
|
20
21
|
];
|
|
21
22
|
const socialProviders = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import EventEmitter from 'eventemitter3';
|
|
2
2
|
import { WalletConnectorCore } from '../types';
|
|
3
|
-
export declare const Chains: readonly ["
|
|
3
|
+
export declare const Chains: readonly ["ALGO", "APTOS", "ATOM", "BTC", "COSMOS", "ECLIPSE", "ETH", "EVM", "FLOW", "SOL", "SPARK", "STARK", "SUI", "TRON"];
|
|
4
4
|
export type Chain = typeof Chains[number];
|
|
5
5
|
export declare const socialProviders: readonly ["google", "facebook", "apple", "github", "bitbucket", "gitlab", "linkedin", "twitter", "discord", "twitch", "microsoft"];
|
|
6
6
|
export type SocialProvider = typeof socialProviders[number];
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
const Chains = [
|
|
3
|
-
'ETH',
|
|
4
|
-
'FLOW',
|
|
5
|
-
'SOL',
|
|
6
|
-
'EVM',
|
|
7
3
|
'ALGO',
|
|
8
|
-
'
|
|
4
|
+
'APTOS',
|
|
9
5
|
'ATOM',
|
|
10
|
-
'COSMOS',
|
|
11
6
|
'BTC',
|
|
7
|
+
'COSMOS',
|
|
12
8
|
'ECLIPSE',
|
|
13
|
-
'
|
|
9
|
+
'ETH',
|
|
10
|
+
'EVM',
|
|
11
|
+
'FLOW',
|
|
12
|
+
'SOL',
|
|
14
13
|
'SPARK',
|
|
14
|
+
'STARK',
|
|
15
|
+
'SUI',
|
|
15
16
|
'TRON',
|
|
16
17
|
];
|
|
17
18
|
const socialProviders = [
|
|
@@ -41,6 +41,10 @@ export interface IDynamicWaasConnector extends WalletConnectorBase {
|
|
|
41
41
|
accountAddress: string;
|
|
42
42
|
password?: string;
|
|
43
43
|
}): Promise<void>;
|
|
44
|
+
revokeDelegation({ accountAddress, password, }: {
|
|
45
|
+
accountAddress: string;
|
|
46
|
+
password?: string;
|
|
47
|
+
}): Promise<void>;
|
|
44
48
|
refreshWalletAccountShares({ accountAddress, password, }: {
|
|
45
49
|
accountAddress: string;
|
|
46
50
|
password?: string;
|
|
@@ -3,73 +3,25 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
+
const createChainInfo = (blockchainName, name, symbol, displayName) => ({
|
|
7
|
+
blockchainName,
|
|
8
|
+
displayName: displayName !== null && displayName !== void 0 ? displayName : blockchainName,
|
|
9
|
+
name,
|
|
10
|
+
symbol: symbol,
|
|
11
|
+
});
|
|
6
12
|
const chainsInfo = [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{
|
|
20
|
-
blockchainName: 'Ethereum',
|
|
21
|
-
displayName: 'EVM',
|
|
22
|
-
name: 'evm',
|
|
23
|
-
symbol: 'ETH',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
blockchainName: 'Flow',
|
|
27
|
-
displayName: 'Flow',
|
|
28
|
-
name: 'flow',
|
|
29
|
-
symbol: 'FLOW',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
blockchainName: 'Solana',
|
|
33
|
-
displayName: 'Solana',
|
|
34
|
-
name: 'solana',
|
|
35
|
-
symbol: 'SOL',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
blockchainName: 'Starknet',
|
|
39
|
-
displayName: 'Starknet',
|
|
40
|
-
name: 'starknet',
|
|
41
|
-
symbol: 'ETH',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
blockchainName: 'Cosmos',
|
|
45
|
-
displayName: 'Cosmos',
|
|
46
|
-
name: 'cosmos',
|
|
47
|
-
symbol: 'COSMOS',
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
blockchainName: 'Eclipse',
|
|
51
|
-
displayName: 'Eclipse',
|
|
52
|
-
name: 'eclipse',
|
|
53
|
-
symbol: 'ECLIPSE',
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
blockchainName: 'Sui',
|
|
57
|
-
displayName: 'Sui',
|
|
58
|
-
name: 'sui',
|
|
59
|
-
symbol: 'SUI',
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
blockchainName: 'Spark',
|
|
63
|
-
displayName: 'Spark',
|
|
64
|
-
name: 'spark',
|
|
65
|
-
symbol: 'SPARK',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
blockchainName: 'Tron',
|
|
69
|
-
displayName: 'Tron',
|
|
70
|
-
name: 'tron',
|
|
71
|
-
symbol: 'TRON',
|
|
72
|
-
},
|
|
13
|
+
createChainInfo('Algorand', 'algorand', 'ALGO'),
|
|
14
|
+
createChainInfo('Aptos', 'aptos', 'APTOS'),
|
|
15
|
+
createChainInfo('Bitcoin', 'bitcoin', 'BTC'),
|
|
16
|
+
createChainInfo('Cosmos', 'cosmos', 'COSMOS'),
|
|
17
|
+
createChainInfo('Eclipse', 'eclipse', 'ECLIPSE'),
|
|
18
|
+
createChainInfo('Ethereum', 'evm', 'ETH', 'EVM'),
|
|
19
|
+
createChainInfo('Flow', 'flow', 'FLOW'),
|
|
20
|
+
createChainInfo('Solana', 'solana', 'SOL'),
|
|
21
|
+
createChainInfo('Spark', 'spark', 'SPARK'),
|
|
22
|
+
createChainInfo('Starknet', 'starknet', 'ETH'),
|
|
23
|
+
createChainInfo('Sui', 'sui', 'SUI'),
|
|
24
|
+
createChainInfo('Tron', 'tron', 'TRON'),
|
|
73
25
|
];
|
|
74
26
|
const chainOverrides = {
|
|
75
27
|
algo: 'algorand',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChainInfo } from '../..';
|
|
2
|
-
export type ChainName = 'algorand' | '
|
|
2
|
+
export type ChainName = 'algorand' | 'aptos' | 'bitcoin' | 'cosmos' | 'eclipse' | 'evm' | 'flow' | 'solana' | 'spark' | 'starknet' | 'sui' | 'tron';
|
|
3
3
|
export type ChainDisplayOverrides = Partial<Record<ChainName, {
|
|
4
4
|
displayName?: string;
|
|
5
5
|
}>>;
|
|
@@ -1,71 +1,23 @@
|
|
|
1
1
|
'use client'
|
|
2
|
+
const createChainInfo = (blockchainName, name, symbol, displayName) => ({
|
|
3
|
+
blockchainName,
|
|
4
|
+
displayName: displayName !== null && displayName !== void 0 ? displayName : blockchainName,
|
|
5
|
+
name,
|
|
6
|
+
symbol: symbol,
|
|
7
|
+
});
|
|
2
8
|
const chainsInfo = [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
{
|
|
16
|
-
blockchainName: 'Ethereum',
|
|
17
|
-
displayName: 'EVM',
|
|
18
|
-
name: 'evm',
|
|
19
|
-
symbol: 'ETH',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
blockchainName: 'Flow',
|
|
23
|
-
displayName: 'Flow',
|
|
24
|
-
name: 'flow',
|
|
25
|
-
symbol: 'FLOW',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
blockchainName: 'Solana',
|
|
29
|
-
displayName: 'Solana',
|
|
30
|
-
name: 'solana',
|
|
31
|
-
symbol: 'SOL',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
blockchainName: 'Starknet',
|
|
35
|
-
displayName: 'Starknet',
|
|
36
|
-
name: 'starknet',
|
|
37
|
-
symbol: 'ETH',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
blockchainName: 'Cosmos',
|
|
41
|
-
displayName: 'Cosmos',
|
|
42
|
-
name: 'cosmos',
|
|
43
|
-
symbol: 'COSMOS',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
blockchainName: 'Eclipse',
|
|
47
|
-
displayName: 'Eclipse',
|
|
48
|
-
name: 'eclipse',
|
|
49
|
-
symbol: 'ECLIPSE',
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
blockchainName: 'Sui',
|
|
53
|
-
displayName: 'Sui',
|
|
54
|
-
name: 'sui',
|
|
55
|
-
symbol: 'SUI',
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
blockchainName: 'Spark',
|
|
59
|
-
displayName: 'Spark',
|
|
60
|
-
name: 'spark',
|
|
61
|
-
symbol: 'SPARK',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
blockchainName: 'Tron',
|
|
65
|
-
displayName: 'Tron',
|
|
66
|
-
name: 'tron',
|
|
67
|
-
symbol: 'TRON',
|
|
68
|
-
},
|
|
9
|
+
createChainInfo('Algorand', 'algorand', 'ALGO'),
|
|
10
|
+
createChainInfo('Aptos', 'aptos', 'APTOS'),
|
|
11
|
+
createChainInfo('Bitcoin', 'bitcoin', 'BTC'),
|
|
12
|
+
createChainInfo('Cosmos', 'cosmos', 'COSMOS'),
|
|
13
|
+
createChainInfo('Eclipse', 'eclipse', 'ECLIPSE'),
|
|
14
|
+
createChainInfo('Ethereum', 'evm', 'ETH', 'EVM'),
|
|
15
|
+
createChainInfo('Flow', 'flow', 'FLOW'),
|
|
16
|
+
createChainInfo('Solana', 'solana', 'SOL'),
|
|
17
|
+
createChainInfo('Spark', 'spark', 'SPARK'),
|
|
18
|
+
createChainInfo('Starknet', 'starknet', 'ETH'),
|
|
19
|
+
createChainInfo('Sui', 'sui', 'SUI'),
|
|
20
|
+
createChainInfo('Tron', 'tron', 'TRON'),
|
|
69
21
|
];
|
|
70
22
|
const chainOverrides = {
|
|
71
23
|
algo: 'algorand',
|