@wallet-standard/experimental-features
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -1,4 +0,4 @@ | ||
import type { WalletAccount } from '@wallet-standard/base'; | ||
import type { ReadonlyUint8Array, WalletAccount } from '@wallet-standard/base'; | ||
/** TODO: docs */ | ||
export declare type DecryptFeature = { | ||
export type DecryptFeature = { | ||
/** Name of the feature. */ | ||
@@ -9,3 +9,3 @@ 'experimental:decrypt': { | ||
/** List of ciphers supported for decryption. */ | ||
ciphers: ReadonlyArray<string>; | ||
ciphers: readonly string[]; | ||
/** | ||
@@ -22,5 +22,5 @@ * Decrypt ciphertexts using the account's secret key. | ||
/** TODO: docs */ | ||
export declare type DecryptVersion = '1.0.0'; | ||
export type DecryptVersion = '1.0.0'; | ||
/** TODO: docs */ | ||
export declare type DecryptMethod = (...inputs: DecryptInput[]) => Promise<DecryptOutput[]>; | ||
export type DecryptMethod = (...inputs: DecryptInput[]) => Promise<DecryptOutput[]>; | ||
/** Input for decryption. */ | ||
@@ -33,7 +33,7 @@ export interface DecryptInput { | ||
/** Public key to derive a shared key to decrypt the data using. */ | ||
publicKey: Uint8Array; | ||
publicKey: ReadonlyUint8Array; | ||
/** Ciphertext to decrypt. */ | ||
ciphertext: Uint8Array; | ||
ciphertext: ReadonlyUint8Array; | ||
/** Nonce to use for decryption. */ | ||
nonce: Uint8Array; | ||
nonce: ReadonlyUint8Array; | ||
/** Multiple of padding bytes to use for decryption, defaulting to 0. */ | ||
@@ -40,0 +40,0 @@ padding?: 0 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048; |
@@ -1,4 +0,4 @@ | ||
import type { WalletAccount } from '@wallet-standard/base'; | ||
import type { ReadonlyUint8Array, WalletAccount } from '@wallet-standard/base'; | ||
/** TODO: docs */ | ||
export declare type EncryptFeature = { | ||
export type EncryptFeature = { | ||
/** Name of the feature. */ | ||
@@ -9,3 +9,3 @@ 'experimental:encrypt': { | ||
/** List of ciphers supported for encryption. */ | ||
ciphers: ReadonlyArray<string>; | ||
ciphers: readonly string[]; | ||
/** | ||
@@ -22,5 +22,5 @@ * Encrypt cleartexts using the account's secret key. | ||
/** TODO: docs */ | ||
export declare type EncryptVersion = '1.0.0'; | ||
export type EncryptVersion = '1.0.0'; | ||
/** TODO: docs */ | ||
export declare type EncryptMethod = (...inputs: EncryptInput[]) => Promise<EncryptOutput[]>; | ||
export type EncryptMethod = (...inputs: EncryptInput[]) => Promise<EncryptOutput[]>; | ||
/** Input for encryption. */ | ||
@@ -33,5 +33,5 @@ export interface EncryptInput { | ||
/** Public key to derive a shared key to encrypt the data using. */ | ||
publicKey: Uint8Array; | ||
publicKey: ReadonlyUint8Array; | ||
/** Cleartext to decrypt. */ | ||
cleartext: Uint8Array; | ||
cleartext: ReadonlyUint8Array; | ||
/** Multiple of padding bytes to use for encryption, defaulting to 0. */ | ||
@@ -38,0 +38,0 @@ padding?: 0 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048; |
@@ -8,5 +8,5 @@ import type { WalletWithFeatures } from '@wallet-standard/base'; | ||
/** TODO: docs */ | ||
export declare type ExperimentalFeatures = DecryptFeature | EncryptFeature | SignAndSendTransactionFeature | SignMessageFeature | SignTransactionFeature; | ||
export type ExperimentalFeatures = DecryptFeature | EncryptFeature | SignAndSendTransactionFeature | SignMessageFeature | SignTransactionFeature; | ||
/** TODO: docs */ | ||
export declare type WalletWithExperimentalFeatures = WalletWithFeatures<ExperimentalFeatures>; | ||
export type WalletWithExperimentalFeatures = WalletWithFeatures<ExperimentalFeatures>; | ||
export * from './ciphers.js'; | ||
@@ -13,0 +13,0 @@ export * from './decrypt.js'; |
import type { IdentifierString } from '@wallet-standard/base'; | ||
import type { SignTransactionInput } from './signTransaction.js'; | ||
/** TODO: docs */ | ||
export declare type SignAndSendTransactionFeature = { | ||
export type SignAndSendTransactionFeature = { | ||
/** Name of the feature. */ | ||
@@ -20,5 +20,5 @@ 'experimental:signAndSendTransaction': { | ||
/** TODO: docs */ | ||
export declare type SignAndSendTransactionVersion = '1.0.0'; | ||
export type SignAndSendTransactionVersion = '1.0.0'; | ||
/** TODO: docs */ | ||
export declare type SignAndSendTransactionMethod = (...inputs: SignAndSendTransactionInput[]) => Promise<SignAndSendTransactionOutput[]>; | ||
export type SignAndSendTransactionMethod = (...inputs: SignAndSendTransactionInput[]) => Promise<SignAndSendTransactionOutput[]>; | ||
/** Input for signing and sending transactions. */ | ||
@@ -25,0 +25,0 @@ export interface SignAndSendTransactionInput extends SignTransactionInput { |
@@ -1,4 +0,4 @@ | ||
import type { WalletAccount } from '@wallet-standard/base'; | ||
import type { ReadonlyUint8Array, WalletAccount } from '@wallet-standard/base'; | ||
/** TODO: docs */ | ||
export declare type SignMessageFeature = { | ||
export type SignMessageFeature = { | ||
/** Name of the feature. */ | ||
@@ -13,5 +13,5 @@ 'experimental:signMessage': { | ||
/** TODO: docs */ | ||
export declare type SignMessageVersion = '1.0.0'; | ||
export type SignMessageVersion = '1.0.0'; | ||
/** TODO: docs */ | ||
export declare type SignMessageMethod = (...inputs: SignMessageInput[]) => Promise<SignMessageOutput[]>; | ||
export type SignMessageMethod = (...inputs: SignMessageInput[]) => Promise<SignMessageOutput[]>; | ||
/** Input for signing a message. */ | ||
@@ -22,3 +22,3 @@ export interface SignMessageInput { | ||
/** Message to sign, as raw bytes. */ | ||
message: Uint8Array; | ||
message: ReadonlyUint8Array; | ||
} | ||
@@ -25,0 +25,0 @@ /** Output of signing a message. */ |
@@ -1,4 +0,4 @@ | ||
import type { IdentifierString, WalletAccount } from '@wallet-standard/base'; | ||
import type { IdentifierString, ReadonlyUint8Array, WalletAccount } from '@wallet-standard/base'; | ||
/** TODO: docs */ | ||
export declare type SignTransactionFeature = { | ||
export type SignTransactionFeature = { | ||
/** Name of the feature. */ | ||
@@ -13,5 +13,5 @@ 'experimental:signTransaction': { | ||
/** TODO: docs */ | ||
export declare type SignTransactionVersion = '1.0.0'; | ||
export type SignTransactionVersion = '1.0.0'; | ||
/** TODO: docs */ | ||
export declare type SignTransactionMethod = (...inputs: SignTransactionInput[]) => Promise<SignTransactionOutput[]>; | ||
export type SignTransactionMethod = (...inputs: SignTransactionInput[]) => Promise<SignTransactionOutput[]>; | ||
/** Input for signing a transaction. */ | ||
@@ -22,3 +22,3 @@ export interface SignTransactionInput { | ||
/** Serialized transactions, as raw bytes. */ | ||
transaction: Uint8Array; | ||
transaction: ReadonlyUint8Array; | ||
/** Chain to use. */ | ||
@@ -25,0 +25,0 @@ chain?: IdentifierString; |
{ | ||
"name": "@wallet-standard/experimental-features", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"author": "Solana Maintainers <maintainers@solana.foundation>", | ||
@@ -29,3 +29,3 @@ "repository": "https://github.com/wallet-standard/wallet-standard", | ||
"dependencies": { | ||
"@wallet-standard/base": "^1.0.1" | ||
"@wallet-standard/base": "^1.1.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
import type { WalletAccount } from '@wallet-standard/base'; | ||
import type { ReadonlyUint8Array, WalletAccount } from '@wallet-standard/base'; | ||
@@ -11,3 +11,3 @@ /** TODO: docs */ | ||
/** List of ciphers supported for decryption. */ | ||
ciphers: ReadonlyArray<string>; | ||
ciphers: readonly string[]; | ||
@@ -40,9 +40,9 @@ /** | ||
/** Public key to derive a shared key to decrypt the data using. */ | ||
publicKey: Uint8Array; | ||
publicKey: ReadonlyUint8Array; | ||
/** Ciphertext to decrypt. */ | ||
ciphertext: Uint8Array; | ||
ciphertext: ReadonlyUint8Array; | ||
/** Nonce to use for decryption. */ | ||
nonce: Uint8Array; | ||
nonce: ReadonlyUint8Array; | ||
@@ -49,0 +49,0 @@ /** Multiple of padding bytes to use for decryption, defaulting to 0. */ |
@@ -1,2 +0,2 @@ | ||
import type { WalletAccount } from '@wallet-standard/base'; | ||
import type { ReadonlyUint8Array, WalletAccount } from '@wallet-standard/base'; | ||
@@ -12,3 +12,3 @@ /** TODO: docs */ | ||
/** List of ciphers supported for encryption. */ | ||
ciphers: ReadonlyArray<string>; | ||
ciphers: readonly string[]; | ||
@@ -41,6 +41,6 @@ /** | ||
/** Public key to derive a shared key to encrypt the data using. */ | ||
publicKey: Uint8Array; | ||
publicKey: ReadonlyUint8Array; | ||
/** Cleartext to decrypt. */ | ||
cleartext: Uint8Array; | ||
cleartext: ReadonlyUint8Array; | ||
@@ -47,0 +47,0 @@ /** Multiple of padding bytes to use for encryption, defaulting to 0. */ |
@@ -1,2 +0,2 @@ | ||
import type { WalletAccount } from '@wallet-standard/base'; | ||
import type { ReadonlyUint8Array, WalletAccount } from '@wallet-standard/base'; | ||
@@ -27,3 +27,3 @@ /** TODO: docs */ | ||
/** Message to sign, as raw bytes. */ | ||
message: Uint8Array; | ||
message: ReadonlyUint8Array; | ||
} | ||
@@ -30,0 +30,0 @@ |
@@ -1,2 +0,2 @@ | ||
import type { IdentifierString, WalletAccount } from '@wallet-standard/base'; | ||
import type { IdentifierString, ReadonlyUint8Array, WalletAccount } from '@wallet-standard/base'; | ||
@@ -27,3 +27,3 @@ /** TODO: docs */ | ||
/** Serialized transactions, as raw bytes. */ | ||
transaction: Uint8Array; | ||
transaction: ReadonlyUint8Array; | ||
@@ -30,0 +30,0 @@ /** Chain to use. */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38278
Updated@wallet-standard/base@^1.1.0