@dynamic-labs/ethereum-gasless-extension 5.9.4 → 5.10.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 +25 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +6 -6
- package/src/index.d.ts +1 -1
- package/src/lib/EthereumGaslessExtension/EthereumGaslessExtension.cjs +17 -0
- package/src/lib/EthereumGaslessExtension/EthereumGaslessExtension.js +17 -0
- package/src/lib/types.d.ts +20 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
|
|
2
|
+
## [5.10.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.6...v5.10.0) (2026-10-09)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add lockWallets/lockWallet to re-lock password-encrypted WaaS wallets ([#12461](https://github.com/dynamic-labs/dynamic-auth/issues/12461)) ([090f544](https://github.com/dynamic-labs/dynamic-auth/commit/090f544150f4359bbfd9c0ffb4c450868adb6759))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **logger:** scope server error forwarding per instance ([#12477](https://github.com/dynamic-labs/dynamic-auth/issues/12477)) ([baa8c78](https://github.com/dynamic-labs/dynamic-auth/commit/baa8c780f4ef3cc35d62c363e03e74412ece91b9))
|
|
13
|
+
* **waas:** fall back when crypto.randomUUID is unavailable ([#12435](https://github.com/dynamic-labs/dynamic-auth/issues/12435)) ([5756f53](https://github.com/dynamic-labs/dynamic-auth/commit/5756f53423bd8316bce97e46ce38fc923fd5d574))
|
|
14
|
+
* **waas:** include every wallet in password update batches ([#12462](https://github.com/dynamic-labs/dynamic-auth/issues/12462)) ([80218f7](https://github.com/dynamic-labs/dynamic-auth/commit/80218f702dadfee9673cec4037889449bcd5ceb6))
|
|
15
|
+
|
|
16
|
+
### [5.9.6](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.5...v5.9.6) (2026-10-06)
|
|
17
|
+
|
|
18
|
+
### [5.9.5](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.4...v5.9.5) (2026-10-06)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **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))
|
|
24
|
+
* **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)
|
|
25
|
+
* **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))
|
|
26
|
+
|
|
2
27
|
### [5.9.4](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.3...v5.9.4) (2026-10-02)
|
|
3
28
|
|
|
4
29
|
### [5.9.3](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.2...v5.9.3) (2026-10-02)
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ethereum-gasless-extension",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0",
|
|
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.
|
|
18
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
19
|
-
"@dynamic-labs/legacy-client": "5.
|
|
20
|
-
"@dynamic-labs/message-transport": "5.
|
|
21
|
-
"@dynamic-labs/webview-messages": "5.
|
|
17
|
+
"@dynamic-labs/ethereum-gasless-core": "5.10.0",
|
|
18
|
+
"@dynamic-labs/assert-package-version": "5.10.0",
|
|
19
|
+
"@dynamic-labs/legacy-client": "5.10.0",
|
|
20
|
+
"@dynamic-labs/message-transport": "5.10.0",
|
|
21
|
+
"@dynamic-labs/webview-messages": "5.10.0"
|
|
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),
|
package/src/lib/types.d.ts
CHANGED
|
@@ -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`.
|