@rhinestone/1auth 0.1.1 → 0.4.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/README.md +130 -0
- package/dist/{chunk-U7KZ4XMQ.mjs → chunk-X73ALCGW.mjs} +202 -36
- package/dist/chunk-X73ALCGW.mjs.map +1 -0
- package/dist/{client-B-HGKKaJ.d.mts → client-DKuPEx83.d.mts} +462 -27
- package/dist/{client-B-HGKKaJ.d.ts → client-DKuPEx83.d.ts} +462 -27
- package/dist/index.d.mts +19 -10
- package/dist/index.d.ts +19 -10
- package/dist/index.js +1417 -282
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1235 -266
- package/dist/index.mjs.map +1 -1
- package/dist/provider-CmJarV7y.d.mts +33 -0
- package/dist/provider-Dj5l4bWn.d.ts +33 -0
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +16 -9
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +16 -9
- package/dist/react.mjs.map +1 -1
- package/dist/wagmi.d.mts +3 -3
- package/dist/wagmi.d.ts +3 -3
- package/dist/wagmi.js +193 -37
- package/dist/wagmi.js.map +1 -1
- package/dist/wagmi.mjs +1 -1
- package/package.json +19 -5
- package/dist/chunk-U7KZ4XMQ.mjs.map +0 -1
- package/dist/provider-CDIRlA4y.d.mts +0 -25
- package/dist/provider-Cy1StrOe.d.ts +0 -25
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OneAuthClient, I as IntentSigner, W as WebAuthnSignature, a as IntentCall, S as SendIntentResult } from './client-
|
|
2
|
-
export { A as AuthenticateOptions,
|
|
3
|
-
export { P as PasskeyProvider,
|
|
1
|
+
import { O as OneAuthClient, I as IntentSigner, W as WebAuthnSignature, a as IntentCall, S as SendIntentResult } from './client-DKuPEx83.mjs';
|
|
2
|
+
export { A as AuthenticateOptions, l as AuthenticateResult, B as BalanceRequirement, a3 as BatchIntentItem, a6 as BatchIntentItemResult, $ as CheckConsentOptions, a0 as CheckConsentResult, F as CloseOnStatus, k as ConnectResult, _ as ConsentData, Z as ConsentField, C as CreateSigningRequestResponse, D as DeveloperSignedIntent, q as EIP712Domain, s as EIP712TypeField, r as EIP712Types, E as EmbedOptions, H as ExecuteIntentResponse, K as IntentHistoryItem, J as IntentHistoryOptions, N as IntentHistoryResult, x as IntentQuote, y as IntentStatus, v as IntentTokenRequest, L as LoginOptions, j as LoginResult, M as MerchantSignedIntent, z as OrchestratorStatus, h as PasskeyCredential, P as PasskeyProviderConfig, a8 as PrepareBatchIntentResponse, G as PrepareIntentResponse, a7 as PreparedBatchIntent, R as RegisterOptions, i as RegisterResult, a1 as RequestConsentOptions, a2 as RequestConsentResult, a4 as SendBatchIntentOptions, a5 as SendBatchIntentResult, w as SendIntentOptions, Q as SendSwapOptions, V as SendSwapResult, m as SignMessageOptions, n as SignMessageResult, o as SignTypedDataOptions, p as SignTypedDataResult, e as SigningError, f as SigningErrorCode, b as SigningRequestOptions, g as SigningRequestStatus, c as SigningResult, d as SigningSuccess, X as SwapQuote, Y as ThemeConfig, T as TransactionAction, u as TransactionDetails, t as TransactionFees, U as UserPasskeysResponse } from './client-DKuPEx83.mjs';
|
|
3
|
+
export { O as OneAuthProvider, b as OneAuthProviderOptions, P as PasskeyProvider, d as PasskeyProviderOptions, c as createOneAuthProvider, a as createPasskeyProvider } from './provider-CmJarV7y.mjs';
|
|
4
4
|
import { Address, LocalAccount, Chain, Transport, Hex, WalletClient, Hash } from 'viem';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import * as React from 'react';
|
|
@@ -28,7 +28,7 @@ interface PasskeyWalletClientConfig {
|
|
|
28
28
|
clientId: string;
|
|
29
29
|
/** Optional URL of the dialog UI */
|
|
30
30
|
dialogUrl?: string;
|
|
31
|
-
/** Optional signer for
|
|
31
|
+
/** Optional signer for developer-protected intents */
|
|
32
32
|
signIntent?: IntentSigner;
|
|
33
33
|
/** Chain configuration */
|
|
34
34
|
chain: Chain;
|
|
@@ -64,6 +64,11 @@ interface SendCallsParams {
|
|
|
64
64
|
calls: TransactionCall[];
|
|
65
65
|
/** Optional chain id override */
|
|
66
66
|
chainId?: number;
|
|
67
|
+
/** Optional token requests for orchestrator output (what tokens/amounts to deliver) */
|
|
68
|
+
tokenRequests?: {
|
|
69
|
+
token: string;
|
|
70
|
+
amount: bigint;
|
|
71
|
+
}[];
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
/**
|
|
@@ -223,18 +228,22 @@ declare function getTokenSymbol(tokenAddress: Address, chainId: number): string;
|
|
|
223
228
|
declare function isTokenAddressSupported(tokenAddress: Address, chainId: number): boolean;
|
|
224
229
|
|
|
225
230
|
/**
|
|
226
|
-
* The
|
|
227
|
-
* This
|
|
231
|
+
* The EIP-191 prefix used for personal message signing.
|
|
232
|
+
* This is the standard Ethereum message prefix for `personal_sign`.
|
|
228
233
|
*/
|
|
229
|
-
declare const
|
|
234
|
+
declare const ETHEREUM_MESSAGE_PREFIX = "\u0019Ethereum Signed Message:\n";
|
|
230
235
|
/**
|
|
231
|
-
*
|
|
236
|
+
* @deprecated Use ETHEREUM_MESSAGE_PREFIX instead. Kept for backwards compatibility.
|
|
237
|
+
*/
|
|
238
|
+
declare const PASSKEY_MESSAGE_PREFIX = "\u0019Ethereum Signed Message:\n";
|
|
239
|
+
/**
|
|
240
|
+
* Hash a message with the EIP-191 Ethereum prefix.
|
|
232
241
|
*
|
|
233
242
|
* This is the same hashing function used by the passkey sign dialog.
|
|
234
243
|
* Use this to verify that the `signedHash` returned from `signMessage()`
|
|
235
244
|
* matches your original message.
|
|
236
245
|
*
|
|
237
|
-
* Format: keccak256("\
|
|
246
|
+
* Format: keccak256("\x19Ethereum Signed Message:\n" + len + message)
|
|
238
247
|
*
|
|
239
248
|
* @example
|
|
240
249
|
* ```typescript
|
|
@@ -268,4 +277,4 @@ declare function hashMessage(message: string): `0x${string}`;
|
|
|
268
277
|
*/
|
|
269
278
|
declare function verifyMessageHash(message: string, signedHash: string | undefined): boolean;
|
|
270
279
|
|
|
271
|
-
export { type BatchQueueContextValue, BatchQueueProvider, type BatchQueueProviderProps, BatchQueueWidget, type BatchQueueWidgetProps, type BatchedCall, type ChainFilterOptions, IntentCall, IntentSigner, OneAuthClient, PASSKEY_MESSAGE_PREFIX, type PasskeyAccount, OneAuthClient as PasskeyProviderClient, type PasskeyWalletClient, type PasskeyWalletClientConfig, type SendCallsParams, SendIntentResult, type TokenConfig, type TransactionCall, WebAuthnSignature, createPasskeyAccount, createPasskeyWalletClient, encodeWebAuthnSignature, getAllSupportedChainsAndTokens, getChainById, getChainExplorerUrl, getChainName, getChainRpcUrl, getSupportedChainIds, getSupportedChains, getSupportedTokenSymbols, getSupportedTokens, getTokenSymbol, hashCalls, hashMessage, isTestnet, isTokenAddressSupported, resolveTokenAddress, useBatchQueue, verifyMessageHash };
|
|
280
|
+
export { type BatchQueueContextValue, BatchQueueProvider, type BatchQueueProviderProps, BatchQueueWidget, type BatchQueueWidgetProps, type BatchedCall, type ChainFilterOptions, ETHEREUM_MESSAGE_PREFIX, IntentCall, IntentSigner, OneAuthClient, PASSKEY_MESSAGE_PREFIX, type PasskeyAccount, OneAuthClient as PasskeyProviderClient, type PasskeyWalletClient, type PasskeyWalletClientConfig, type SendCallsParams, SendIntentResult, type TokenConfig, type TransactionCall, WebAuthnSignature, createPasskeyAccount, createPasskeyWalletClient, encodeWebAuthnSignature, getAllSupportedChainsAndTokens, getChainById, getChainExplorerUrl, getChainName, getChainRpcUrl, getSupportedChainIds, getSupportedChains, getSupportedTokenSymbols, getSupportedTokens, getTokenSymbol, hashCalls, hashMessage, isTestnet, isTokenAddressSupported, resolveTokenAddress, useBatchQueue, verifyMessageHash };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OneAuthClient, I as IntentSigner, W as WebAuthnSignature, a as IntentCall, S as SendIntentResult } from './client-
|
|
2
|
-
export { A as AuthenticateOptions,
|
|
3
|
-
export { P as PasskeyProvider,
|
|
1
|
+
import { O as OneAuthClient, I as IntentSigner, W as WebAuthnSignature, a as IntentCall, S as SendIntentResult } from './client-DKuPEx83.js';
|
|
2
|
+
export { A as AuthenticateOptions, l as AuthenticateResult, B as BalanceRequirement, a3 as BatchIntentItem, a6 as BatchIntentItemResult, $ as CheckConsentOptions, a0 as CheckConsentResult, F as CloseOnStatus, k as ConnectResult, _ as ConsentData, Z as ConsentField, C as CreateSigningRequestResponse, D as DeveloperSignedIntent, q as EIP712Domain, s as EIP712TypeField, r as EIP712Types, E as EmbedOptions, H as ExecuteIntentResponse, K as IntentHistoryItem, J as IntentHistoryOptions, N as IntentHistoryResult, x as IntentQuote, y as IntentStatus, v as IntentTokenRequest, L as LoginOptions, j as LoginResult, M as MerchantSignedIntent, z as OrchestratorStatus, h as PasskeyCredential, P as PasskeyProviderConfig, a8 as PrepareBatchIntentResponse, G as PrepareIntentResponse, a7 as PreparedBatchIntent, R as RegisterOptions, i as RegisterResult, a1 as RequestConsentOptions, a2 as RequestConsentResult, a4 as SendBatchIntentOptions, a5 as SendBatchIntentResult, w as SendIntentOptions, Q as SendSwapOptions, V as SendSwapResult, m as SignMessageOptions, n as SignMessageResult, o as SignTypedDataOptions, p as SignTypedDataResult, e as SigningError, f as SigningErrorCode, b as SigningRequestOptions, g as SigningRequestStatus, c as SigningResult, d as SigningSuccess, X as SwapQuote, Y as ThemeConfig, T as TransactionAction, u as TransactionDetails, t as TransactionFees, U as UserPasskeysResponse } from './client-DKuPEx83.js';
|
|
3
|
+
export { O as OneAuthProvider, b as OneAuthProviderOptions, P as PasskeyProvider, d as PasskeyProviderOptions, c as createOneAuthProvider, a as createPasskeyProvider } from './provider-Dj5l4bWn.js';
|
|
4
4
|
import { Address, LocalAccount, Chain, Transport, Hex, WalletClient, Hash } from 'viem';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import * as React from 'react';
|
|
@@ -28,7 +28,7 @@ interface PasskeyWalletClientConfig {
|
|
|
28
28
|
clientId: string;
|
|
29
29
|
/** Optional URL of the dialog UI */
|
|
30
30
|
dialogUrl?: string;
|
|
31
|
-
/** Optional signer for
|
|
31
|
+
/** Optional signer for developer-protected intents */
|
|
32
32
|
signIntent?: IntentSigner;
|
|
33
33
|
/** Chain configuration */
|
|
34
34
|
chain: Chain;
|
|
@@ -64,6 +64,11 @@ interface SendCallsParams {
|
|
|
64
64
|
calls: TransactionCall[];
|
|
65
65
|
/** Optional chain id override */
|
|
66
66
|
chainId?: number;
|
|
67
|
+
/** Optional token requests for orchestrator output (what tokens/amounts to deliver) */
|
|
68
|
+
tokenRequests?: {
|
|
69
|
+
token: string;
|
|
70
|
+
amount: bigint;
|
|
71
|
+
}[];
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
/**
|
|
@@ -223,18 +228,22 @@ declare function getTokenSymbol(tokenAddress: Address, chainId: number): string;
|
|
|
223
228
|
declare function isTokenAddressSupported(tokenAddress: Address, chainId: number): boolean;
|
|
224
229
|
|
|
225
230
|
/**
|
|
226
|
-
* The
|
|
227
|
-
* This
|
|
231
|
+
* The EIP-191 prefix used for personal message signing.
|
|
232
|
+
* This is the standard Ethereum message prefix for `personal_sign`.
|
|
228
233
|
*/
|
|
229
|
-
declare const
|
|
234
|
+
declare const ETHEREUM_MESSAGE_PREFIX = "\u0019Ethereum Signed Message:\n";
|
|
230
235
|
/**
|
|
231
|
-
*
|
|
236
|
+
* @deprecated Use ETHEREUM_MESSAGE_PREFIX instead. Kept for backwards compatibility.
|
|
237
|
+
*/
|
|
238
|
+
declare const PASSKEY_MESSAGE_PREFIX = "\u0019Ethereum Signed Message:\n";
|
|
239
|
+
/**
|
|
240
|
+
* Hash a message with the EIP-191 Ethereum prefix.
|
|
232
241
|
*
|
|
233
242
|
* This is the same hashing function used by the passkey sign dialog.
|
|
234
243
|
* Use this to verify that the `signedHash` returned from `signMessage()`
|
|
235
244
|
* matches your original message.
|
|
236
245
|
*
|
|
237
|
-
* Format: keccak256("\
|
|
246
|
+
* Format: keccak256("\x19Ethereum Signed Message:\n" + len + message)
|
|
238
247
|
*
|
|
239
248
|
* @example
|
|
240
249
|
* ```typescript
|
|
@@ -268,4 +277,4 @@ declare function hashMessage(message: string): `0x${string}`;
|
|
|
268
277
|
*/
|
|
269
278
|
declare function verifyMessageHash(message: string, signedHash: string | undefined): boolean;
|
|
270
279
|
|
|
271
|
-
export { type BatchQueueContextValue, BatchQueueProvider, type BatchQueueProviderProps, BatchQueueWidget, type BatchQueueWidgetProps, type BatchedCall, type ChainFilterOptions, IntentCall, IntentSigner, OneAuthClient, PASSKEY_MESSAGE_PREFIX, type PasskeyAccount, OneAuthClient as PasskeyProviderClient, type PasskeyWalletClient, type PasskeyWalletClientConfig, type SendCallsParams, SendIntentResult, type TokenConfig, type TransactionCall, WebAuthnSignature, createPasskeyAccount, createPasskeyWalletClient, encodeWebAuthnSignature, getAllSupportedChainsAndTokens, getChainById, getChainExplorerUrl, getChainName, getChainRpcUrl, getSupportedChainIds, getSupportedChains, getSupportedTokenSymbols, getSupportedTokens, getTokenSymbol, hashCalls, hashMessage, isTestnet, isTokenAddressSupported, resolveTokenAddress, useBatchQueue, verifyMessageHash };
|
|
280
|
+
export { type BatchQueueContextValue, BatchQueueProvider, type BatchQueueProviderProps, BatchQueueWidget, type BatchQueueWidgetProps, type BatchedCall, type ChainFilterOptions, ETHEREUM_MESSAGE_PREFIX, IntentCall, IntentSigner, OneAuthClient, PASSKEY_MESSAGE_PREFIX, type PasskeyAccount, OneAuthClient as PasskeyProviderClient, type PasskeyWalletClient, type PasskeyWalletClientConfig, type SendCallsParams, SendIntentResult, type TokenConfig, type TransactionCall, WebAuthnSignature, createPasskeyAccount, createPasskeyWalletClient, encodeWebAuthnSignature, getAllSupportedChainsAndTokens, getChainById, getChainExplorerUrl, getChainName, getChainRpcUrl, getSupportedChainIds, getSupportedChains, getSupportedTokenSymbols, getSupportedTokens, getTokenSymbol, hashCalls, hashMessage, isTestnet, isTokenAddressSupported, resolveTokenAddress, useBatchQueue, verifyMessageHash };
|