@coinbase/cdp-core 0.0.39 → 0.0.42
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/dist/esm/index.native13.js +1 -1
- package/dist/esm/index.native25.js +149 -940
- package/dist/esm/index.native26.js +48 -2
- package/dist/esm/index.native27.js +244 -43
- package/dist/esm/index.native28.js +55 -27
- package/dist/esm/index.native29.js +940 -149
- package/dist/esm/index.native30.js +2 -48
- package/dist/esm/index.native31.js +43 -243
- package/dist/esm/index.native32.js +27 -55
- package/dist/esm/index.native8.js +5 -5
- package/dist/esm/index.native9.js +49 -31
- package/dist/esm/index.web100.js +10 -79
- package/dist/esm/index.web101.js +79 -10
- package/dist/esm/index.web12.js +1 -1
- package/dist/esm/index.web24.js +149 -940
- package/dist/esm/index.web25.js +48 -2
- package/dist/esm/index.web26.js +244 -43
- package/dist/esm/index.web27.js +55 -27
- package/dist/esm/index.web28.js +940 -149
- package/dist/esm/index.web29.js +2 -48
- package/dist/esm/index.web30.js +43 -243
- package/dist/esm/index.web31.js +27 -55
- package/dist/esm/index.web59.js +1 -1
- package/dist/esm/index.web60.js +1 -1
- package/dist/esm/index.web7.js +5 -5
- package/dist/esm/index.web8.js +49 -31
- package/dist/esm/index.web87.js +2 -21
- package/dist/esm/index.web88.js +21 -2
- package/dist/esm/index.web91.js +1 -1
- package/dist/native/index.native13.js +1 -1
- package/dist/native/index.native25.js +149 -940
- package/dist/native/index.native26.js +48 -2
- package/dist/native/index.native27.js +244 -43
- package/dist/native/index.native28.js +55 -27
- package/dist/native/index.native29.js +940 -149
- package/dist/native/index.native30.js +2 -48
- package/dist/native/index.native31.js +43 -243
- package/dist/native/index.native32.js +27 -55
- package/dist/native/index.native8.js +5 -5
- package/dist/native/index.native9.js +49 -31
- package/dist/native-types/eip1193/errors.d.ts +6 -0
- package/dist/native-types/eip1193/internal.d.ts +3 -1
- package/dist/types/eip1193/errors.d.ts +6 -0
- package/dist/types/eip1193/internal.d.ts +3 -1
- package/dist/web/index.web100.js +10 -79
- package/dist/web/index.web101.js +79 -10
- package/dist/web/index.web12.js +1 -1
- package/dist/web/index.web24.js +149 -940
- package/dist/web/index.web25.js +48 -2
- package/dist/web/index.web26.js +244 -43
- package/dist/web/index.web27.js +55 -27
- package/dist/web/index.web28.js +940 -149
- package/dist/web/index.web29.js +2 -48
- package/dist/web/index.web30.js +43 -243
- package/dist/web/index.web31.js +27 -55
- package/dist/web/index.web59.js +1 -1
- package/dist/web/index.web60.js +1 -1
- package/dist/web/index.web7.js +5 -5
- package/dist/web/index.web8.js +49 -31
- package/dist/web/index.web87.js +2 -21
- package/dist/web/index.web88.js +21 -2
- package/dist/web/index.web91.js +1 -1
- package/dist/web-types/eip1193/errors.d.ts +6 -0
- package/dist/web-types/eip1193/internal.d.ts +3 -1
- package/package.json +2 -2
package/dist/web/index.web91.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HashMD as D, SHA256_IV as b, Chi as g, Maj as p } from "./index.
|
|
1
|
+
import { HashMD as D, SHA256_IV as b, Chi as g, Maj as p } from "./index.web101.js";
|
|
2
2
|
import { createHasher as u, clean as C, rotr as i } from "./index.web90.js";
|
|
3
3
|
const B = /* @__PURE__ */ Uint32Array.from([
|
|
4
4
|
1116352408,
|
|
@@ -39,6 +39,9 @@ export declare class RPCRequestError extends Error {
|
|
|
39
39
|
code: RPCErrorCode;
|
|
40
40
|
constructor(code: RPCErrorCode, message: string);
|
|
41
41
|
}
|
|
42
|
+
export declare class AccountTypeMismatchError extends Error {
|
|
43
|
+
constructor(message: string);
|
|
44
|
+
}
|
|
42
45
|
export declare function validateRequest(request: Parameters<ReturnType<typeof ox_Provider.from>["request"]>[0], { chains }: {
|
|
43
46
|
chains: readonly [Chain, ...Chain[]];
|
|
44
47
|
}): void;
|
|
@@ -46,3 +49,6 @@ export declare function validateUserConnected(): Promise<import('../types.js').U
|
|
|
46
49
|
export declare function validateUserOwnsAddress(address: EvmAddress): Promise<import('../types.js').User>;
|
|
47
50
|
export declare function validateUserHasEvmAccount(): Promise<import('../types.js').User>;
|
|
48
51
|
export declare function validateUserHasEvmSmartAccount(): Promise<import('../types.js').User>;
|
|
52
|
+
export declare function validateIsUsingEOA({ errorMessage }?: {
|
|
53
|
+
errorMessage?: string;
|
|
54
|
+
}): Promise<import('../types.js').User>;
|
|
@@ -27,5 +27,7 @@ export declare function handleChainId(store: ProviderStoreInstance): Promise<Hex
|
|
|
27
27
|
export declare function handleDisconnect(): Promise<void>;
|
|
28
28
|
export declare function handleSwitchEthereumChain(params: SwitchEthereumChainRequest["params"], store: ProviderStoreInstance): void;
|
|
29
29
|
export declare function handleSendCalls(params: SendCallsRequest["params"], store: ProviderStoreInstance): Promise<`0x${string}`>;
|
|
30
|
-
export declare function handleGetCallsStatus(params: GetCallsStatusRequest["params"], store: ProviderStoreInstance): Promise<WalletGetCallsStatusReturnType
|
|
30
|
+
export declare function handleGetCallsStatus(params: GetCallsStatusRequest["params"], store: ProviderStoreInstance): Promise<WalletGetCallsStatusReturnType<{
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}, number, bigint | undefined, string | undefined>>;
|
|
31
33
|
export declare function handleGetCapabilities(): Promise<WalletCapabilities>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cdp-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.42",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"ox": "0.8.1",
|
|
28
28
|
"viem": "^2.33.0",
|
|
29
29
|
"zustand": "^5.0.6",
|
|
30
|
-
"@coinbase/cdp-api-client": "^0.0.
|
|
30
|
+
"@coinbase/cdp-api-client": "^0.0.42"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@react-native-async-storage/async-storage": "^2.0.0",
|