@dynamic-labs/ethereum-gasless-extension 5.9.2 → 5.9.6

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 CHANGED
@@ -1,4 +1,23 @@
1
1
 
2
+ ### [5.9.6](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.5...v5.9.6) (2026-10-06)
3
+
4
+ ### [5.9.5](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.4...v5.9.5) (2026-10-06)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * **ton:** move encodeComment to base TonWalletConnector ([#12459](https://github.com/dynamic-labs/dynamic-auth/issues/12459)) ([647df5b](https://github.com/dynamic-labs/dynamic-auth/commit/647df5bc3986d59d89dbe31bbd3ebe1c4605ec40))
10
+ * **waas-svm:** apply overrideBlockhash before sponsorship ([#12319](https://github.com/dynamic-labs/dynamic-auth/issues/12319)) ([074ce3c](https://github.com/dynamic-labs/dynamic-auth/commit/074ce3c4ecfa080b683c84120fa7643e8fe064d4)), closes [#10599](https://github.com/dynamic-labs/dynamic-auth/issues/10599) [#10599](https://github.com/dynamic-labs/dynamic-auth/issues/10599) [#10599](https://github.com/dynamic-labs/dynamic-auth/issues/10599) [#10599](https://github.com/dynamic-labs/dynamic-auth/issues/10599)
11
+ * **wallet-book:** use phantom.com for Phantom in-app-browser links ([#12456](https://github.com/dynamic-labs/dynamic-auth/issues/12456)) ([e762553](https://github.com/dynamic-labs/dynamic-auth/commit/e7625534f8beda3e649f121e637451e2188faef6))
12
+
13
+ ### [5.9.4](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.3...v5.9.4) (2026-10-02)
14
+
15
+ ### [5.9.3](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.2...v5.9.3) (2026-10-02)
16
+
17
+ ### Bug Fixes
18
+
19
+ * **deps:** patch undici/joi/webpack-dev-middleware highs (main) ([#12452](https://github.com/dynamic-labs/dynamic-auth/issues/12452)) ([3b2ac12](https://github.com/dynamic-labs/dynamic-auth/commit/3b2ac126153bec03c0f296353a71a97bb61974d9)), closes [#1030-1048](https://github.com/dynamic-labs/dynamic-auth/issues/1030-1048) [#1036](https://github.com/dynamic-labs/dynamic-auth/issues/1036) [#1035](https://github.com/dynamic-labs/dynamic-auth/issues/1035)
20
+
2
21
  ### [5.9.2](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.1...v5.9.2) (2026-09-28)
3
22
 
4
23
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "5.9.2";
6
+ var version = "5.9.6";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "5.9.2";
2
+ var version = "5.9.6";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum-gasless-extension",
3
- "version": "5.9.2",
3
+ "version": "5.9.6",
4
4
  "main": "./src/index.cjs",
5
5
  "module": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -14,11 +14,11 @@
14
14
  "./package.json": "./package.json"
15
15
  },
16
16
  "dependencies": {
17
- "@dynamic-labs/ethereum-gasless-core": "5.9.2",
18
- "@dynamic-labs/assert-package-version": "5.9.2",
19
- "@dynamic-labs/legacy-client": "5.9.2",
20
- "@dynamic-labs/message-transport": "5.9.2",
21
- "@dynamic-labs/webview-messages": "5.9.2"
17
+ "@dynamic-labs/ethereum-gasless-core": "5.9.6",
18
+ "@dynamic-labs/assert-package-version": "5.9.6",
19
+ "@dynamic-labs/legacy-client": "5.9.6",
20
+ "@dynamic-labs/message-transport": "5.9.6",
21
+ "@dynamic-labs/webview-messages": "5.9.6"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "viem": "^2.45.3"
package/src/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { EthereumGaslessExtension, ethereumGaslessExtensionName, } from './lib/EthereumGaslessExtension';
2
- export type { IEthereumGaslessExtension, IEthereumGaslessExtensionInput, } from './lib/types';
2
+ export type { EthereumTransaction, GasSponsorshipMode, IEthereumGaslessExtension, IEthereumGaslessExtensionInput, IEthereumTransactionInput, } from './lib/types';
3
3
  export { EthereumGasSponsorshipNotEnabledError, SponsorTransactionError, } from '@dynamic-labs/ethereum-gasless-core';
4
4
  export type { SerializedAuthorization, SignedSponsoredTransaction, SponsoredTransactionCall, SponsoredTransactionStatus, SponsoredTransactionStatusResult, } from '@dynamic-labs/ethereum-gasless-core';
@@ -3,6 +3,7 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
+ var _tslib = require('../../../_virtual/_tslib.cjs');
6
7
  var messageTransport = require('@dynamic-labs/message-transport');
7
8
  var toWireParams = require('./toWireParams/toWireParams.cjs');
8
9
 
@@ -18,6 +19,22 @@ const EthereumGaslessExtension = () => (_, core) => {
18
19
  isEnabled: () => requestChannel.request('ethereumGasless_isEnabled'),
19
20
  relay: (params) => requestChannel.request('ethereumGasless_relay', toWireParams.toWireParams(params)),
20
21
  send: (params) => requestChannel.request('ethereumGasless_send', toWireParams.toWireParams(params)),
22
+ sendTransaction: (_a) => {
23
+ var _b, _c;
24
+ var { sponsorshipMode = 'auto', transaction } = _a, rest = _tslib.__rest(_a, ["sponsorshipMode", "transaction"]);
25
+ const _d = toWireParams.toWireParams(Object.assign(Object.assign({}, rest), { calls: [
26
+ {
27
+ data: (_b = transaction.data) !== null && _b !== void 0 ? _b : '0x',
28
+ target: transaction.to,
29
+ value: (_c = transaction.value) !== null && _c !== void 0 ? _c : BigInt(0),
30
+ },
31
+ ] })), { calls: wireCalls } = _d, wireParams = _tslib.__rest(_d, ["calls"]);
32
+ return requestChannel.request('ethereumGasless_sendTransaction', Object.assign(Object.assign({}, wireParams), { sponsorshipMode, transaction: {
33
+ data: wireCalls[0].data,
34
+ to: wireCalls[0].target,
35
+ value: wireCalls[0].value,
36
+ } }));
37
+ },
21
38
  sign: (params) => requestChannel.request('ethereumGasless_sign', toWireParams.toWireParams(params)),
22
39
  sign7702Authorization: (params) => requestChannel.request('ethereumGasless_sign7702Authorization', params),
23
40
  waitFor: (params) => requestChannel.request('ethereumGasless_waitFor', params),
@@ -1,4 +1,5 @@
1
1
  'use client'
2
+ import { __rest } from '../../../_virtual/_tslib.js';
2
3
  import { createRequestChannel } from '@dynamic-labs/message-transport';
3
4
  import { toWireParams } from './toWireParams/toWireParams.js';
4
5
 
@@ -14,6 +15,22 @@ const EthereumGaslessExtension = () => (_, core) => {
14
15
  isEnabled: () => requestChannel.request('ethereumGasless_isEnabled'),
15
16
  relay: (params) => requestChannel.request('ethereumGasless_relay', toWireParams(params)),
16
17
  send: (params) => requestChannel.request('ethereumGasless_send', toWireParams(params)),
18
+ sendTransaction: (_a) => {
19
+ var _b, _c;
20
+ var { sponsorshipMode = 'auto', transaction } = _a, rest = __rest(_a, ["sponsorshipMode", "transaction"]);
21
+ const _d = toWireParams(Object.assign(Object.assign({}, rest), { calls: [
22
+ {
23
+ data: (_b = transaction.data) !== null && _b !== void 0 ? _b : '0x',
24
+ target: transaction.to,
25
+ value: (_c = transaction.value) !== null && _c !== void 0 ? _c : BigInt(0),
26
+ },
27
+ ] })), { calls: wireCalls } = _d, wireParams = __rest(_d, ["calls"]);
28
+ return requestChannel.request('ethereumGasless_sendTransaction', Object.assign(Object.assign({}, wireParams), { sponsorshipMode, transaction: {
29
+ data: wireCalls[0].data,
30
+ to: wireCalls[0].target,
31
+ value: wireCalls[0].value,
32
+ } }));
33
+ },
17
34
  sign: (params) => requestChannel.request('ethereumGasless_sign', toWireParams(params)),
18
35
  sign7702Authorization: (params) => requestChannel.request('ethereumGasless_sign7702Authorization', params),
19
36
  waitFor: (params) => requestChannel.request('ethereumGasless_waitFor', params),
@@ -22,6 +22,18 @@ export type IEthereumGaslessExtensionInput = {
22
22
  nonce?: bigint;
23
23
  validForSeconds?: number;
24
24
  };
25
+ export type GasSponsorshipMode = 'auto' | 'off' | 'required';
26
+ export type EthereumTransaction = {
27
+ data?: Hex;
28
+ to: Hex;
29
+ value?: bigint;
30
+ };
31
+ export type IEthereumTransactionInput = Omit<IEthereumGaslessExtensionInput, 'calls'> & {
32
+ /** Controls whether Dynamic sponsors this transaction. Defaults to auto. */
33
+ sponsorshipMode?: GasSponsorshipMode;
34
+ /** A single EVM transaction expressed as its recipient, calldata, and value. */
35
+ transaction: EthereumTransaction;
36
+ };
25
37
  export type IEthereumGaslessExtension = {
26
38
  ethereumGasless: {
27
39
  /**
@@ -31,6 +43,14 @@ export type IEthereumGaslessExtension = {
31
43
  send: (params: IEthereumGaslessExtensionInput) => Promise<{
32
44
  transactionHash: Hex;
33
45
  }>;
46
+ /**
47
+ * Sends one EVM transaction with per-transaction sponsorship control.
48
+ * `auto` follows project settings, `off` makes the wallet pay, and
49
+ * `required` sponsors or rejects.
50
+ */
51
+ sendTransaction: (params: IEthereumTransactionInput) => Promise<{
52
+ transactionHash: Hex;
53
+ }>;
34
54
  /**
35
55
  * Signs and relays a sponsored transaction. Resolves with the relay
36
56
  * request ID; the on-chain hash is available via `waitFor` / `getStatus`.