@dynamic-labs/webview-messages 4.30.4 → 4.31.1
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 +7 -7
- package/src/lib/SdkModuleMessages.d.ts +2 -0
- package/src/lib/ViemMessages.d.ts +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.31.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.31.0...v4.31.1) (2025-09-10)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* convert y parity to number instead of bigint ([#9476](https://github.com/dynamic-labs/dynamic-auth/issues/9476)) ([1e779ef](https://github.com/dynamic-labs/dynamic-auth/commit/1e779ef4217877b15857e6f8cd4e02da5d7830df))
|
|
8
|
+
|
|
9
|
+
## [4.31.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.30.4...v4.31.0) (2025-09-09)
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* adds evmNetworks prop for the react native client ([#9429](https://github.com/dynamic-labs/dynamic-auth/pull/9429))
|
|
14
|
+
* allow creating a mfaToken on authenticateRecoveryCode ([#9459](https://github.com/dynamic-labs/dynamic-auth/pull/9459))
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* fixed the yParity conversion in unFormatTransaction ([#9457](https://github.com/dynamic-labs/dynamic-auth/pull/9457))
|
|
19
|
+
|
|
2
20
|
### [4.30.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.30.3...v4.30.4) (2025-09-09)
|
|
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/webview-messages",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.31.1",
|
|
4
4
|
"description": "A package to define messages for the webview-controller",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.762",
|
|
22
|
-
"@dynamic-labs-sdk/client": "0.0
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
24
|
-
"@dynamic-labs/logger": "4.
|
|
25
|
-
"@dynamic-labs/message-transport": "4.
|
|
26
|
-
"@dynamic-labs/types": "4.
|
|
27
|
-
"@dynamic-labs/webauthn": "4.
|
|
22
|
+
"@dynamic-labs-sdk/client": "0.1.0-alpha.3",
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.31.1",
|
|
24
|
+
"@dynamic-labs/logger": "4.31.1",
|
|
25
|
+
"@dynamic-labs/message-transport": "4.31.1",
|
|
26
|
+
"@dynamic-labs/types": "4.31.1",
|
|
27
|
+
"@dynamic-labs/webauthn": "4.31.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {}
|
|
30
30
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LogLevel } from '@dynamic-labs/logger';
|
|
2
|
+
import type { EvmNetwork } from '@dynamic-labs/types';
|
|
2
3
|
/**
|
|
3
4
|
* Defines the settings required by the SDK to be properly initialized
|
|
4
5
|
* inside the webview
|
|
@@ -11,6 +12,7 @@ export type ClientManifest = {
|
|
|
11
12
|
clientVersion: string;
|
|
12
13
|
cssOverrides?: string;
|
|
13
14
|
environmentId: string;
|
|
15
|
+
evmNetworks?: EvmNetwork[];
|
|
14
16
|
platform: 'browser' | 'react-native' | 'flutter' | 'swift';
|
|
15
17
|
redirectUrl: string;
|
|
16
18
|
debug?: {
|
|
@@ -47,5 +47,19 @@ export type ViemMessages = {
|
|
|
47
47
|
viem_signMessage: (walletId: string, message: SignableMessage) => Promise<Hex>;
|
|
48
48
|
viem_signTransaction: (walletId: string, transaction: TransactionSerializable) => Promise<Hex>;
|
|
49
49
|
viem_signTypedData: (walletId: string, typedData: TypedData) => Promise<Hex>;
|
|
50
|
+
viem_writeContract: (walletId: string, contractInput: {
|
|
51
|
+
abi: unknown[];
|
|
52
|
+
address: Hex;
|
|
53
|
+
functionName: string;
|
|
54
|
+
args: unknown[];
|
|
55
|
+
gas?: bigint;
|
|
56
|
+
maxFeePerBlobGas?: bigint;
|
|
57
|
+
gasPrice?: bigint;
|
|
58
|
+
maxPriorityFeePerGas?: bigint;
|
|
59
|
+
maxFeePerGas?: bigint;
|
|
60
|
+
nonce?: number;
|
|
61
|
+
value?: bigint;
|
|
62
|
+
type?: 'legacy' | 'eip2930' | 'eip1559' | 'eip4844' | 'eip7702';
|
|
63
|
+
}) => Promise<Hex>;
|
|
50
64
|
};
|
|
51
65
|
export {};
|