@dynamic-labs/starknet 4.83.2-alpha.0 → 4.84.0
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 +18 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/index.cjs +0 -2
- package/src/index.d.ts +0 -5
- package/src/index.js +0 -2
- package/src/wallets/argent/injected/argentx.cjs +1 -1
- package/src/wallets/argent/injected/argentx.js +1 -1
- package/src/wallets/argent/argentMobile/argentMobile.cjs +0 -71
- package/src/wallets/argent/argentMobile/argentMobile.d.ts +0 -16
- package/src/wallets/argent/argentMobile/argentMobile.js +0 -67
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.84.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.83.2-alpha.0...v4.84.0) (2026-05-22)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **ethereum-gasless:** add @dynamic-labs/ethereum-gasless-{core,extension} and webview controller ([#11267](https://github.com/dynamic-labs/dynamic-auth/issues/11267)) ([edac5df](https://github.com/dynamic-labs/dynamic-auth/commit/edac5df8180483093f69caee508cbdebf2e4e663)), closes [#11274](https://github.com/dynamic-labs/dynamic-auth/issues/11274) [#11274](https://github.com/dynamic-labs/dynamic-auth/issues/11274) [#11274](https://github.com/dynamic-labs/dynamic-auth/issues/11274)
|
|
8
|
+
* **mobile-demo:** add EVM gasless screens for 7702 delegation and sponsored transactions ([#11274](https://github.com/dynamic-labs/dynamic-auth/issues/11274)) ([2961b8f](https://github.com/dynamic-labs/dynamic-auth/commit/2961b8f732ef3a172fcf0e814db3b74961015edf)), closes [#11267](https://github.com/dynamic-labs/dynamic-auth/issues/11267) [#11267](https://github.com/dynamic-labs/dynamic-auth/issues/11267) [#11267](https://github.com/dynamic-labs/dynamic-auth/issues/11267)
|
|
9
|
+
* **mobile-demo:** wire Maestro Cloud E2E for iOS smoke flow ([#11144](https://github.com/dynamic-labs/dynamic-auth/issues/11144)) ([d25b694](https://github.com/dynamic-labs/dynamic-auth/commit/d25b694017277fbe97fc13e21f82201350551862))
|
|
10
|
+
* **starknet:** rename Argent X to Ready X, remove Ready Mobile ([#11299](https://github.com/dynamic-labs/dynamic-auth/issues/11299)) ([addc5dd](https://github.com/dynamic-labs/dynamic-auth/commit/addc5dd9f18310c474dd7ad3ff15c9ab1b652136))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **playwright:** unflake allow/block on 4201/4202 (domain-access-control) DYNT-777 ([#11118](https://github.com/dynamic-labs/dynamic-auth/issues/11118)) ([86e0d72](https://github.com/dynamic-labs/dynamic-auth/commit/86e0d72b7d094f25ce9efd2173cd478b93eb8393)), closes [#11119](https://github.com/dynamic-labs/dynamic-auth/issues/11119)
|
|
16
|
+
* **playwright:** unflake demo-v2 phantom flows (tolerate get-started splash skip) ([#11185](https://github.com/dynamic-labs/dynamic-auth/issues/11185)) ([b648d39](https://github.com/dynamic-labs/dynamic-auth/commit/b648d39c11580b5fbedb5a6972c174a42aa13326))
|
|
17
|
+
* **sdk-react-core:** prevent duplicate deviceRegistration calls and stale list refetch after self-revoke ([#11298](https://github.com/dynamic-labs/dynamic-auth/issues/11298)) ([8ae5180](https://github.com/dynamic-labs/dynamic-auth/commit/8ae51803517bcde9503a20c290e82f3068dfda66))
|
|
18
|
+
* **wallet-book:** correct sprite IDs for bitgetwallet and coin98 wallet groups ([#11291](https://github.com/dynamic-labs/dynamic-auth/issues/11291)) ([d56763c](https://github.com/dynamic-labs/dynamic-auth/commit/d56763c741a93c279c8dd9e548ab7d5ab14cd30d))
|
|
19
|
+
|
|
2
20
|
### [4.83.2-alpha.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.83.1...v4.83.2-alpha.0) (2026-05-18)
|
|
3
21
|
|
|
4
22
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/starknet",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.84.0",
|
|
4
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"starknetkit": "2.10.4",
|
|
25
25
|
"text-encoding": "0.7.0",
|
|
26
26
|
"@dynamic-labs/sdk-api-core": "0.0.985",
|
|
27
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
28
|
-
"@dynamic-labs/logger": "4.
|
|
29
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
30
|
-
"@dynamic-labs/starknet-core": "4.
|
|
31
|
-
"@dynamic-labs/types": "4.
|
|
32
|
-
"@dynamic-labs/utils": "4.
|
|
33
|
-
"@dynamic-labs/wallet-book": "4.
|
|
34
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
27
|
+
"@dynamic-labs/assert-package-version": "4.84.0",
|
|
28
|
+
"@dynamic-labs/logger": "4.84.0",
|
|
29
|
+
"@dynamic-labs/rpc-providers": "4.84.0",
|
|
30
|
+
"@dynamic-labs/starknet-core": "4.84.0",
|
|
31
|
+
"@dynamic-labs/types": "4.84.0",
|
|
32
|
+
"@dynamic-labs/utils": "4.84.0",
|
|
33
|
+
"@dynamic-labs/wallet-book": "4.84.0",
|
|
34
|
+
"@dynamic-labs/wallet-connector-core": "4.84.0",
|
|
35
35
|
"assert": "2.1.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {}
|
package/src/index.cjs
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
6
|
var assertPackageVersion = require('@dynamic-labs/assert-package-version');
|
|
7
7
|
var _package = require('../package.cjs');
|
|
8
8
|
var argentx = require('./wallets/argent/injected/argentx.cjs');
|
|
9
|
-
var argentMobile = require('./wallets/argent/argentMobile/argentMobile.cjs');
|
|
10
9
|
var webwallet = require('./wallets/argent/webwallet/webwallet.cjs');
|
|
11
10
|
var metamask = require('./wallets/injected/metamask.cjs');
|
|
12
11
|
var fetchStarknetInjectedWalletConnectors = require('./wallets/injected/fetchStarknetInjectedWalletConnectors.cjs');
|
|
@@ -23,7 +22,6 @@ assertPackageVersion.assertPackageVersion('@dynamic-labs/starknet', _package.ver
|
|
|
23
22
|
const StarknetWalletConnectors = (props) => [
|
|
24
23
|
...fetchStarknetInjectedWalletConnectors.fetchStarknetInjectedWalletConnectors(props),
|
|
25
24
|
argentx.ArgentX,
|
|
26
|
-
argentMobile.ArgentMobile,
|
|
27
25
|
webwallet.WebWallet,
|
|
28
26
|
metamask.MetaMask,
|
|
29
27
|
braavos.Braavos,
|
package/src/index.d.ts
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { ArgentX } from './wallets/argent/injected/argentx';
|
|
2
|
-
import type { ArgentMobileWalletConnectorType } from './wallets/argent/argentMobile/argentMobile';
|
|
3
2
|
import type { WebWalletConnectorType } from './wallets/argent/webwallet/webwallet';
|
|
4
3
|
import '@dynamic-labs/starknet-core';
|
|
5
4
|
export declare const StarknetWalletConnectors: (props: any) => (import("dist/packages/wallet-connector-core/src").WalletConnectorConstructor | typeof ArgentX)[];
|
|
6
5
|
export type { StarknetWalletConnectorType } from './StarknetWalletConnector';
|
|
7
6
|
export type { ArgentXWalletConnectorType } from './wallets/argent/injected/argentx';
|
|
8
7
|
export type {
|
|
9
|
-
/** Deprecated. Use ArgentMobileWalletConnectorType */
|
|
10
|
-
ArgentMobileWalletConnectorType as ArgentXMobileWalletConnectorType, };
|
|
11
|
-
export type { ArgentMobileWalletConnectorType };
|
|
12
|
-
export type {
|
|
13
8
|
/** Deprecated. Use WebWalletConnectorType */
|
|
14
9
|
WebWalletConnectorType as ArgentXWebWalletConnectorType, };
|
|
15
10
|
export type { WebWalletConnectorType };
|
package/src/index.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { assertPackageVersion } from '@dynamic-labs/assert-package-version';
|
|
3
3
|
import { version } from '../package.js';
|
|
4
4
|
import { ArgentX } from './wallets/argent/injected/argentx.js';
|
|
5
|
-
import { ArgentMobile } from './wallets/argent/argentMobile/argentMobile.js';
|
|
6
5
|
import { WebWallet } from './wallets/argent/webwallet/webwallet.js';
|
|
7
6
|
import { MetaMask } from './wallets/injected/metamask.js';
|
|
8
7
|
import { fetchStarknetInjectedWalletConnectors } from './wallets/injected/fetchStarknetInjectedWalletConnectors.js';
|
|
@@ -19,7 +18,6 @@ assertPackageVersion('@dynamic-labs/starknet', version);
|
|
|
19
18
|
const StarknetWalletConnectors = (props) => [
|
|
20
19
|
...fetchStarknetInjectedWalletConnectors(props),
|
|
21
20
|
ArgentX,
|
|
22
|
-
ArgentMobile,
|
|
23
21
|
WebWallet,
|
|
24
22
|
MetaMask,
|
|
25
23
|
Braavos,
|
|
@@ -10,7 +10,7 @@ var base = require('../base.cjs');
|
|
|
10
10
|
|
|
11
11
|
class ArgentX extends base.ArgentBase {
|
|
12
12
|
constructor(opts) {
|
|
13
|
-
super('Ready
|
|
13
|
+
super('Ready X', 'argentX', 'argentx', opts);
|
|
14
14
|
this.overrideKey = 'argentx';
|
|
15
15
|
}
|
|
16
16
|
prompt(options) {
|
|
@@ -6,7 +6,7 @@ import { ArgentBase } from '../base.js';
|
|
|
6
6
|
|
|
7
7
|
class ArgentX extends ArgentBase {
|
|
8
8
|
constructor(opts) {
|
|
9
|
-
super('Ready
|
|
9
|
+
super('Ready X', 'argentX', 'argentx', opts);
|
|
10
10
|
this.overrideKey = 'argentx';
|
|
11
11
|
}
|
|
12
12
|
prompt(options) {
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var _tslib = require('../../../../_virtual/_tslib.cjs');
|
|
7
|
-
var starknetkit = require('starknetkit');
|
|
8
|
-
var argentMobile = require('starknetkit/argentMobile');
|
|
9
|
-
var starknet = require('starknet');
|
|
10
|
-
var base = require('../base.cjs');
|
|
11
|
-
|
|
12
|
-
class ArgentMobile extends base.ArgentBase {
|
|
13
|
-
constructor(opts) {
|
|
14
|
-
super('Ready', 'argentXMobile', 'argentxmobile', opts);
|
|
15
|
-
this.canConnectViaCustodialService = true;
|
|
16
|
-
this.overrideKey = 'argentxmobile';
|
|
17
|
-
this.projectId = opts.projectId;
|
|
18
|
-
this.appName = opts.appName;
|
|
19
|
-
this.appLogoUrls = opts.appLogoUrl
|
|
20
|
-
? [opts.appLogoUrl]
|
|
21
|
-
: undefined;
|
|
22
|
-
}
|
|
23
|
-
isInstalledOnBrowser() {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
filter() {
|
|
27
|
-
return super.filter() && !argentMobile.isInArgentMobileAppBrowser();
|
|
28
|
-
}
|
|
29
|
-
prompt(options) {
|
|
30
|
-
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
const { connectorData, wallet } = yield starknetkit.connect({
|
|
32
|
-
connectors: [
|
|
33
|
-
new argentMobile.ArgentMobileBaseConnector({
|
|
34
|
-
chainId: this.getNetworkName() || starknet.constants.NetworkName.SN_MAIN,
|
|
35
|
-
dappName: this.appName,
|
|
36
|
-
icons: this.appLogoUrls,
|
|
37
|
-
projectId: this.projectId,
|
|
38
|
-
rpcUrl: this.getNodeUrl(),
|
|
39
|
-
// TODO: use PlatformService
|
|
40
|
-
url: window.location.hostname,
|
|
41
|
-
}),
|
|
42
|
-
],
|
|
43
|
-
modalMode: options.silently ? 'neverAsk' : 'canAsk',
|
|
44
|
-
});
|
|
45
|
-
return {
|
|
46
|
-
data: {
|
|
47
|
-
account: connectorData === null || connectorData === void 0 ? void 0 : connectorData.account,
|
|
48
|
-
chainId: connectorData === null || connectorData === void 0 ? void 0 : connectorData.chainId,
|
|
49
|
-
},
|
|
50
|
-
wallet: wallet !== null && wallet !== void 0 ? wallet : undefined,
|
|
51
|
-
};
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
getNetworkName() {
|
|
55
|
-
const [network] = this.starknetNetworks;
|
|
56
|
-
if (!network) {
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
59
|
-
return this.mapChainIdToNetworkName(network.chainId);
|
|
60
|
-
}
|
|
61
|
-
getNodeUrl() {
|
|
62
|
-
var _a;
|
|
63
|
-
const [network] = this.starknetNetworks;
|
|
64
|
-
if (!network) {
|
|
65
|
-
return undefined;
|
|
66
|
-
}
|
|
67
|
-
return ((_a = network.privateCustomerRpcUrls) === null || _a === void 0 ? void 0 : _a[0]) || network.rpcUrls[0];
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
exports.ArgentMobile = ArgentMobile;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PromptOptions, PromptResult } from '../../../types';
|
|
2
|
-
import { ArgentBase } from '../base';
|
|
3
|
-
export declare class ArgentMobile extends ArgentBase {
|
|
4
|
-
private projectId;
|
|
5
|
-
private appName;
|
|
6
|
-
private appLogoUrls;
|
|
7
|
-
canConnectViaCustodialService: boolean;
|
|
8
|
-
overrideKey: string;
|
|
9
|
-
constructor(opts: any);
|
|
10
|
-
isInstalledOnBrowser(): boolean;
|
|
11
|
-
filter(): boolean;
|
|
12
|
-
prompt(options: PromptOptions): Promise<PromptResult>;
|
|
13
|
-
private getNetworkName;
|
|
14
|
-
private getNodeUrl;
|
|
15
|
-
}
|
|
16
|
-
export type ArgentMobileWalletConnectorType = ArgentMobile;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
3
|
-
import { connect } from 'starknetkit';
|
|
4
|
-
import { isInArgentMobileAppBrowser, ArgentMobileBaseConnector } from 'starknetkit/argentMobile';
|
|
5
|
-
import { constants } from 'starknet';
|
|
6
|
-
import { ArgentBase } from '../base.js';
|
|
7
|
-
|
|
8
|
-
class ArgentMobile extends ArgentBase {
|
|
9
|
-
constructor(opts) {
|
|
10
|
-
super('Ready', 'argentXMobile', 'argentxmobile', opts);
|
|
11
|
-
this.canConnectViaCustodialService = true;
|
|
12
|
-
this.overrideKey = 'argentxmobile';
|
|
13
|
-
this.projectId = opts.projectId;
|
|
14
|
-
this.appName = opts.appName;
|
|
15
|
-
this.appLogoUrls = opts.appLogoUrl
|
|
16
|
-
? [opts.appLogoUrl]
|
|
17
|
-
: undefined;
|
|
18
|
-
}
|
|
19
|
-
isInstalledOnBrowser() {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
filter() {
|
|
23
|
-
return super.filter() && !isInArgentMobileAppBrowser();
|
|
24
|
-
}
|
|
25
|
-
prompt(options) {
|
|
26
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
-
const { connectorData, wallet } = yield connect({
|
|
28
|
-
connectors: [
|
|
29
|
-
new ArgentMobileBaseConnector({
|
|
30
|
-
chainId: this.getNetworkName() || constants.NetworkName.SN_MAIN,
|
|
31
|
-
dappName: this.appName,
|
|
32
|
-
icons: this.appLogoUrls,
|
|
33
|
-
projectId: this.projectId,
|
|
34
|
-
rpcUrl: this.getNodeUrl(),
|
|
35
|
-
// TODO: use PlatformService
|
|
36
|
-
url: window.location.hostname,
|
|
37
|
-
}),
|
|
38
|
-
],
|
|
39
|
-
modalMode: options.silently ? 'neverAsk' : 'canAsk',
|
|
40
|
-
});
|
|
41
|
-
return {
|
|
42
|
-
data: {
|
|
43
|
-
account: connectorData === null || connectorData === void 0 ? void 0 : connectorData.account,
|
|
44
|
-
chainId: connectorData === null || connectorData === void 0 ? void 0 : connectorData.chainId,
|
|
45
|
-
},
|
|
46
|
-
wallet: wallet !== null && wallet !== void 0 ? wallet : undefined,
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
getNetworkName() {
|
|
51
|
-
const [network] = this.starknetNetworks;
|
|
52
|
-
if (!network) {
|
|
53
|
-
return undefined;
|
|
54
|
-
}
|
|
55
|
-
return this.mapChainIdToNetworkName(network.chainId);
|
|
56
|
-
}
|
|
57
|
-
getNodeUrl() {
|
|
58
|
-
var _a;
|
|
59
|
-
const [network] = this.starknetNetworks;
|
|
60
|
-
if (!network) {
|
|
61
|
-
return undefined;
|
|
62
|
-
}
|
|
63
|
-
return ((_a = network.privateCustomerRpcUrls) === null || _a === void 0 ? void 0 : _a[0]) || network.rpcUrls[0];
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export { ArgentMobile };
|