@volr/sdk-core 0.1.101 → 0.1.102
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/index.d.cts +41 -7
- package/dist/index.d.ts +41 -7
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -357,13 +357,47 @@ interface RpcLike {
|
|
|
357
357
|
}): Promise<`0x${string}`>;
|
|
358
358
|
}
|
|
359
359
|
/**
|
|
360
|
-
* EIP-712
|
|
360
|
+
* EIP-712 Domain Separator
|
|
361
|
+
* @see https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator
|
|
362
|
+
*/
|
|
363
|
+
interface TypedDataDomain {
|
|
364
|
+
/** Human-readable name of the signing domain */
|
|
365
|
+
name?: string;
|
|
366
|
+
/** Current major version of the signing domain */
|
|
367
|
+
version?: string;
|
|
368
|
+
/** EIP-155 chain ID */
|
|
369
|
+
chainId?: number | bigint;
|
|
370
|
+
/** Contract address where the signature will be verified */
|
|
371
|
+
verifyingContract?: `0x${string}`;
|
|
372
|
+
/** Disambiguating salt for the protocol */
|
|
373
|
+
salt?: `0x${string}`;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* EIP-712 Type Definition
|
|
361
377
|
*/
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
378
|
+
interface TypedDataField {
|
|
379
|
+
name: string;
|
|
380
|
+
type: string;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* EIP-712 Types (struct definitions)
|
|
384
|
+
* Key is the struct name, value is array of field definitions
|
|
385
|
+
*/
|
|
386
|
+
type TypedDataTypes = Record<string, TypedDataField[]>;
|
|
387
|
+
/**
|
|
388
|
+
* EIP-712 typed data structure
|
|
389
|
+
* @see https://eips.ethereum.org/EIPS/eip-712
|
|
390
|
+
*/
|
|
391
|
+
interface TypedDataInput {
|
|
392
|
+
/** Domain separator parameters */
|
|
393
|
+
domain: TypedDataDomain;
|
|
394
|
+
/** Type definitions (struct schemas) */
|
|
395
|
+
types: TypedDataTypes;
|
|
396
|
+
/** Primary type being signed (must be defined in types) */
|
|
397
|
+
primaryType?: string;
|
|
398
|
+
/** Message data to sign (must match primaryType schema) */
|
|
399
|
+
message: Record<string, unknown>;
|
|
400
|
+
}
|
|
367
401
|
/**
|
|
368
402
|
* Common wallet provider port interface
|
|
369
403
|
* Both Passkey and MPC providers implement this interface
|
|
@@ -1370,4 +1404,4 @@ type SelectSignerContext = {
|
|
|
1370
1404
|
*/
|
|
1371
1405
|
declare function selectSigner(ctx: SelectSignerContext): Promise<SignerPort>;
|
|
1372
1406
|
|
|
1373
|
-
export { type AesGcmParams, type AuthorizationTuple, type Call, ChainNotAddedError, DEFAULT_EVM_PATH, DOMAIN, type DeriveArgs, EIP1193ErrorCode, type EIP1193Provider, EIP712_DOMAIN, ERR_AAD_MISMATCH, ERR_CHAIN_MISMATCH, ERR_CRYPTO_FAIL, ERR_INVALID_PARAM, ERR_LOW_ENTROPY, ERR_NONCE_SIZE, type EvmKeypair, type ExtendedRPCClient, ExternalWalletSigner, type KeyStorageType, type Sig$1 as LegacySig, type MasterKeyProvider, type MasterSeed, type MasterSeedHandle, type MpcTransport, PasskeyP256Signer, type PasskeyProviderOptions, type PasskeyProviderPort, type PrecheckInput, type PrecheckQuote, type PrfInput, type RelayInput, type RelayMode, type RelayResult, RequestPendingError, type RpcLike, Secp256k1SoftwareSigner, type SelectSignerContext, type SessionAuth, type Sig, type SignerContext, type SignerKind, type SignerPort, TYPES, type TypedDataInput, UnauthorizedError, UnsupportedMethodError, type UploadBlobOptions, type UploadViaPresignOptions, UserRejectedError, VolrError, WalletError, type WalletProviderPort, type WrapKey, WrongNetworkError, ZERO_ADDRESS, ZERO_HASH, aesGcmDecrypt, aesGcmEncrypt, buildSignedBatchMessage, computeCallsHash, createMasterKeyProvider, createMpcProvider, createPasskeyProvider, deriveEvmKey, deriveWrapKey, evmSign, evmVerify, generateNonce, getAuthNonce, getRandomBytes, hkdfSha256, normalizeWalletError, sealMasterSeed, selectSigner, selectSigner$1 as selectSignerLegacy, signAuthorization, signSession, toChecksumAddress, unsealMasterSeed, uploadBlob, uploadBlobViaPresign, zeroize };
|
|
1407
|
+
export { type AesGcmParams, type AuthorizationTuple, type Call, ChainNotAddedError, DEFAULT_EVM_PATH, DOMAIN, type DeriveArgs, EIP1193ErrorCode, type EIP1193Provider, EIP712_DOMAIN, ERR_AAD_MISMATCH, ERR_CHAIN_MISMATCH, ERR_CRYPTO_FAIL, ERR_INVALID_PARAM, ERR_LOW_ENTROPY, ERR_NONCE_SIZE, type EvmKeypair, type ExtendedRPCClient, ExternalWalletSigner, type KeyStorageType, type Sig$1 as LegacySig, type MasterKeyProvider, type MasterSeed, type MasterSeedHandle, type MpcTransport, PasskeyP256Signer, type PasskeyProviderOptions, type PasskeyProviderPort, type PrecheckInput, type PrecheckQuote, type PrfInput, type RelayInput, type RelayMode, type RelayResult, RequestPendingError, type RpcLike, Secp256k1SoftwareSigner, type SelectSignerContext, type SessionAuth, type Sig, type SignerContext, type SignerKind, type SignerPort, TYPES, type TypedDataDomain, type TypedDataField, type TypedDataInput, type TypedDataTypes, UnauthorizedError, UnsupportedMethodError, type UploadBlobOptions, type UploadViaPresignOptions, UserRejectedError, VolrError, WalletError, type WalletProviderPort, type WrapKey, WrongNetworkError, ZERO_ADDRESS, ZERO_HASH, aesGcmDecrypt, aesGcmEncrypt, buildSignedBatchMessage, computeCallsHash, createMasterKeyProvider, createMpcProvider, createPasskeyProvider, deriveEvmKey, deriveWrapKey, evmSign, evmVerify, generateNonce, getAuthNonce, getRandomBytes, hkdfSha256, normalizeWalletError, sealMasterSeed, selectSigner, selectSigner$1 as selectSignerLegacy, signAuthorization, signSession, toChecksumAddress, unsealMasterSeed, uploadBlob, uploadBlobViaPresign, zeroize };
|
package/dist/index.d.ts
CHANGED
|
@@ -357,13 +357,47 @@ interface RpcLike {
|
|
|
357
357
|
}): Promise<`0x${string}`>;
|
|
358
358
|
}
|
|
359
359
|
/**
|
|
360
|
-
* EIP-712
|
|
360
|
+
* EIP-712 Domain Separator
|
|
361
|
+
* @see https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator
|
|
362
|
+
*/
|
|
363
|
+
interface TypedDataDomain {
|
|
364
|
+
/** Human-readable name of the signing domain */
|
|
365
|
+
name?: string;
|
|
366
|
+
/** Current major version of the signing domain */
|
|
367
|
+
version?: string;
|
|
368
|
+
/** EIP-155 chain ID */
|
|
369
|
+
chainId?: number | bigint;
|
|
370
|
+
/** Contract address where the signature will be verified */
|
|
371
|
+
verifyingContract?: `0x${string}`;
|
|
372
|
+
/** Disambiguating salt for the protocol */
|
|
373
|
+
salt?: `0x${string}`;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* EIP-712 Type Definition
|
|
361
377
|
*/
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
378
|
+
interface TypedDataField {
|
|
379
|
+
name: string;
|
|
380
|
+
type: string;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* EIP-712 Types (struct definitions)
|
|
384
|
+
* Key is the struct name, value is array of field definitions
|
|
385
|
+
*/
|
|
386
|
+
type TypedDataTypes = Record<string, TypedDataField[]>;
|
|
387
|
+
/**
|
|
388
|
+
* EIP-712 typed data structure
|
|
389
|
+
* @see https://eips.ethereum.org/EIPS/eip-712
|
|
390
|
+
*/
|
|
391
|
+
interface TypedDataInput {
|
|
392
|
+
/** Domain separator parameters */
|
|
393
|
+
domain: TypedDataDomain;
|
|
394
|
+
/** Type definitions (struct schemas) */
|
|
395
|
+
types: TypedDataTypes;
|
|
396
|
+
/** Primary type being signed (must be defined in types) */
|
|
397
|
+
primaryType?: string;
|
|
398
|
+
/** Message data to sign (must match primaryType schema) */
|
|
399
|
+
message: Record<string, unknown>;
|
|
400
|
+
}
|
|
367
401
|
/**
|
|
368
402
|
* Common wallet provider port interface
|
|
369
403
|
* Both Passkey and MPC providers implement this interface
|
|
@@ -1370,4 +1404,4 @@ type SelectSignerContext = {
|
|
|
1370
1404
|
*/
|
|
1371
1405
|
declare function selectSigner(ctx: SelectSignerContext): Promise<SignerPort>;
|
|
1372
1406
|
|
|
1373
|
-
export { type AesGcmParams, type AuthorizationTuple, type Call, ChainNotAddedError, DEFAULT_EVM_PATH, DOMAIN, type DeriveArgs, EIP1193ErrorCode, type EIP1193Provider, EIP712_DOMAIN, ERR_AAD_MISMATCH, ERR_CHAIN_MISMATCH, ERR_CRYPTO_FAIL, ERR_INVALID_PARAM, ERR_LOW_ENTROPY, ERR_NONCE_SIZE, type EvmKeypair, type ExtendedRPCClient, ExternalWalletSigner, type KeyStorageType, type Sig$1 as LegacySig, type MasterKeyProvider, type MasterSeed, type MasterSeedHandle, type MpcTransport, PasskeyP256Signer, type PasskeyProviderOptions, type PasskeyProviderPort, type PrecheckInput, type PrecheckQuote, type PrfInput, type RelayInput, type RelayMode, type RelayResult, RequestPendingError, type RpcLike, Secp256k1SoftwareSigner, type SelectSignerContext, type SessionAuth, type Sig, type SignerContext, type SignerKind, type SignerPort, TYPES, type TypedDataInput, UnauthorizedError, UnsupportedMethodError, type UploadBlobOptions, type UploadViaPresignOptions, UserRejectedError, VolrError, WalletError, type WalletProviderPort, type WrapKey, WrongNetworkError, ZERO_ADDRESS, ZERO_HASH, aesGcmDecrypt, aesGcmEncrypt, buildSignedBatchMessage, computeCallsHash, createMasterKeyProvider, createMpcProvider, createPasskeyProvider, deriveEvmKey, deriveWrapKey, evmSign, evmVerify, generateNonce, getAuthNonce, getRandomBytes, hkdfSha256, normalizeWalletError, sealMasterSeed, selectSigner, selectSigner$1 as selectSignerLegacy, signAuthorization, signSession, toChecksumAddress, unsealMasterSeed, uploadBlob, uploadBlobViaPresign, zeroize };
|
|
1407
|
+
export { type AesGcmParams, type AuthorizationTuple, type Call, ChainNotAddedError, DEFAULT_EVM_PATH, DOMAIN, type DeriveArgs, EIP1193ErrorCode, type EIP1193Provider, EIP712_DOMAIN, ERR_AAD_MISMATCH, ERR_CHAIN_MISMATCH, ERR_CRYPTO_FAIL, ERR_INVALID_PARAM, ERR_LOW_ENTROPY, ERR_NONCE_SIZE, type EvmKeypair, type ExtendedRPCClient, ExternalWalletSigner, type KeyStorageType, type Sig$1 as LegacySig, type MasterKeyProvider, type MasterSeed, type MasterSeedHandle, type MpcTransport, PasskeyP256Signer, type PasskeyProviderOptions, type PasskeyProviderPort, type PrecheckInput, type PrecheckQuote, type PrfInput, type RelayInput, type RelayMode, type RelayResult, RequestPendingError, type RpcLike, Secp256k1SoftwareSigner, type SelectSignerContext, type SessionAuth, type Sig, type SignerContext, type SignerKind, type SignerPort, TYPES, type TypedDataDomain, type TypedDataField, type TypedDataInput, type TypedDataTypes, UnauthorizedError, UnsupportedMethodError, type UploadBlobOptions, type UploadViaPresignOptions, UserRejectedError, VolrError, WalletError, type WalletProviderPort, type WrapKey, WrongNetworkError, ZERO_ADDRESS, ZERO_HASH, aesGcmDecrypt, aesGcmEncrypt, buildSignedBatchMessage, computeCallsHash, createMasterKeyProvider, createMpcProvider, createPasskeyProvider, deriveEvmKey, deriveWrapKey, evmSign, evmVerify, generateNonce, getAuthNonce, getRandomBytes, hkdfSha256, normalizeWalletError, sealMasterSeed, selectSigner, selectSigner$1 as selectSignerLegacy, signAuthorization, signSession, toChecksumAddress, unsealMasterSeed, uploadBlob, uploadBlobViaPresign, zeroize };
|