Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uniswap/client-embeddedwallet

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uniswap/client-embeddedwallet - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

13

dist/uniswap/embeddedwallet/v1/service_connect.d.ts

@@ -1,2 +0,2 @@

import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteRecordRequest, DeleteRecordResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js";
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteRecordRequest, DeleteRecordResponse, DisconnectWalletRequest, DisconnectWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js";
import { MethodKind } from "@bufbuild/protobuf";

@@ -97,3 +97,14 @@ /**

};
/**
* Disconnect a wallet from the web client, cleanup session and cookies
*
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.DisconnectWallet
*/
readonly disconnectWallet: {
readonly name: "DisconnectWallet";
readonly I: typeof DisconnectWalletRequest;
readonly O: typeof DisconnectWalletResponse;
readonly kind: MethodKind.Unary;
};
};
};

@@ -5,3 +5,3 @@ // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"

// @ts-nocheck
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteRecordRequest, DeleteRecordResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js";
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteRecordRequest, DeleteRecordResponse, DisconnectWalletRequest, DisconnectWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js";
import { MethodKind } from "@bufbuild/protobuf";

@@ -102,3 +102,14 @@ /**

},
/**
* Disconnect a wallet from the web client, cleanup session and cookies
*
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.DisconnectWallet
*/
disconnectWallet: {
name: "DisconnectWallet",
I: DisconnectWalletRequest,
O: DisconnectWalletResponse,
kind: MethodKind.Unary,
},
}
};
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
/**
* Authentication types determins the form of the challenge
*
* @generated from enum uniswap.embeddedwallet.v1.AuthenticationTypes

@@ -25,2 +27,41 @@ */

/**
* Action determins what form of authentication type will be used. Session cookie should be limited to sign transactions only.
*
* @generated from enum uniswap.embeddedwallet.v1.Action
*/
export declare enum Action {
/**
* @generated from enum value: ACTION_UNSPECIFIED = 0;
*/
ACTION_UNSPECIFIED = 0,
/**
* @generated from enum value: CREATE_WALLET = 1;
*/
CREATE_WALLET = 1,
/**
* @generated from enum value: SIGN_MESSAGES = 2;
*/
SIGN_MESSAGES = 2,
/**
* @generated from enum value: SIGN_TRANSACTIONS = 3;
*/
SIGN_TRANSACTIONS = 3,
/**
* @generated from enum value: SIGN_TYPED_DATA_BATCH = 4;
*/
SIGN_TYPED_DATA_BATCH = 4,
/**
* @generated from enum value: WALLET_SIGNIN = 5;
*/
WALLET_SIGNIN = 5,
/**
* @generated from enum value: EXPORT_SEED_PHRASE = 6;
*/
EXPORT_SEED_PHRASE = 6,
/**
* @generated from enum value: DELETE_RECORD = 7;
*/
DELETE_RECORD = 7
}
/**
* @generated from message uniswap.embeddedwallet.v1.ChallengeRequest

@@ -34,5 +75,9 @@ */

/**
* @generated from field: uniswap.embeddedwallet.v1.Action action = 2;
*/
action: Action;
/**
* base64 encoded public key, for extension based workflow
*
* @generated from field: optional string b64_encryption_public_key = 2;
* @generated from field: optional string b64_encryption_public_key = 3;
*/

@@ -43,3 +88,3 @@ b64EncryptionPublicKey?: string;

*
* @generated from field: optional string credential_id = 3;
* @generated from field: optional string credential_id = 4;
*/

@@ -81,10 +126,2 @@ credentialId?: string;

credential: string;
/**
* For mobile and extension to create and export using a single passkey click
*
* base64 encoded public key
*
* @generated from field: optional string b64_encryption_public_key = 2;
*/
b64EncryptionPublicKey?: string;
constructor(data?: PartialMessage<CreateWalletRequest>);

@@ -108,5 +145,5 @@ static readonly runtime: typeof proto3;

/**
* @generated from field: string encrypted_seed_phrase = 2;
* @generated from field: optional string encrypted_seed_phrase = 2;
*/
encryptedSeedPhrase: string;
encryptedSeedPhrase?: string;
constructor(data?: PartialMessage<CreateWalletResponse>);

@@ -345,1 +382,27 @@ static readonly runtime: typeof proto3;

}
/**
* @generated from message uniswap.embeddedwallet.v1.DisconnectWalletRequest
*/
export declare class DisconnectWalletRequest extends Message<DisconnectWalletRequest> {
constructor(data?: PartialMessage<DisconnectWalletRequest>);
static readonly runtime: typeof proto3;
static readonly typeName = "uniswap.embeddedwallet.v1.DisconnectWalletRequest";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisconnectWalletRequest;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisconnectWalletRequest;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisconnectWalletRequest;
static equals(a: DisconnectWalletRequest | PlainMessage<DisconnectWalletRequest> | undefined, b: DisconnectWalletRequest | PlainMessage<DisconnectWalletRequest> | undefined): boolean;
}
/**
* @generated from message uniswap.embeddedwallet.v1.DisconnectWalletResponse
*/
export declare class DisconnectWalletResponse extends Message<DisconnectWalletResponse> {
constructor(data?: PartialMessage<DisconnectWalletResponse>);
static readonly runtime: typeof proto3;
static readonly typeName = "uniswap.embeddedwallet.v1.DisconnectWalletResponse";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisconnectWalletResponse;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisconnectWalletResponse;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisconnectWalletResponse;
static equals(a: DisconnectWalletResponse | PlainMessage<DisconnectWalletResponse> | undefined, b: DisconnectWalletResponse | PlainMessage<DisconnectWalletResponse> | undefined): boolean;
}

@@ -7,2 +7,4 @@ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"

/**
* Authentication types determins the form of the challenge
*
* @generated from enum uniswap.embeddedwallet.v1.AuthenticationTypes

@@ -37,2 +39,53 @@ */

/**
* Action determins what form of authentication type will be used. Session cookie should be limited to sign transactions only.
*
* @generated from enum uniswap.embeddedwallet.v1.Action
*/
export var Action;
(function (Action) {
/**
* @generated from enum value: ACTION_UNSPECIFIED = 0;
*/
Action[Action["ACTION_UNSPECIFIED"] = 0] = "ACTION_UNSPECIFIED";
/**
* @generated from enum value: CREATE_WALLET = 1;
*/
Action[Action["CREATE_WALLET"] = 1] = "CREATE_WALLET";
/**
* @generated from enum value: SIGN_MESSAGES = 2;
*/
Action[Action["SIGN_MESSAGES"] = 2] = "SIGN_MESSAGES";
/**
* @generated from enum value: SIGN_TRANSACTIONS = 3;
*/
Action[Action["SIGN_TRANSACTIONS"] = 3] = "SIGN_TRANSACTIONS";
/**
* @generated from enum value: SIGN_TYPED_DATA_BATCH = 4;
*/
Action[Action["SIGN_TYPED_DATA_BATCH"] = 4] = "SIGN_TYPED_DATA_BATCH";
/**
* @generated from enum value: WALLET_SIGNIN = 5;
*/
Action[Action["WALLET_SIGNIN"] = 5] = "WALLET_SIGNIN";
/**
* @generated from enum value: EXPORT_SEED_PHRASE = 6;
*/
Action[Action["EXPORT_SEED_PHRASE"] = 6] = "EXPORT_SEED_PHRASE";
/**
* @generated from enum value: DELETE_RECORD = 7;
*/
Action[Action["DELETE_RECORD"] = 7] = "DELETE_RECORD";
})(Action || (Action = {}));
// Retrieve enum metadata with: proto3.getEnumType(Action)
proto3.util.setEnumType(Action, "uniswap.embeddedwallet.v1.Action", [
{ no: 0, name: "ACTION_UNSPECIFIED" },
{ no: 1, name: "CREATE_WALLET" },
{ no: 2, name: "SIGN_MESSAGES" },
{ no: 3, name: "SIGN_TRANSACTIONS" },
{ no: 4, name: "SIGN_TYPED_DATA_BATCH" },
{ no: 5, name: "WALLET_SIGNIN" },
{ no: 6, name: "EXPORT_SEED_PHRASE" },
{ no: 7, name: "DELETE_RECORD" },
]);
/**
* @generated from message uniswap.embeddedwallet.v1.ChallengeRequest

@@ -47,2 +100,6 @@ */

this.type = AuthenticationTypes.AUTHENTICATION_TYPE_UNSPECIFIED;
/**
* @generated from field: uniswap.embeddedwallet.v1.Action action = 2;
*/
this.action = Action.ACTION_UNSPECIFIED;
proto3.util.initPartial(data, this);

@@ -67,4 +124,5 @@ }

{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(AuthenticationTypes) },
{ no: 2, name: "b64_encryption_public_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 3, name: "credential_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 2, name: "action", kind: "enum", T: proto3.getEnumType(Action) },
{ no: 3, name: "b64_encryption_public_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 4, name: "credential_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
]);

@@ -130,3 +188,2 @@ /**

{ no: 1, name: "credential", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "b64_encryption_public_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
]);

@@ -143,6 +200,2 @@ /**

this.walletAddress = "";
/**
* @generated from field: string encrypted_seed_phrase = 2;
*/
this.encryptedSeedPhrase = "";
proto3.util.initPartial(data, this);

@@ -167,3 +220,3 @@ }

{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "encrypted_seed_phrase", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "encrypted_seed_phrase", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
]);

@@ -553,1 +606,49 @@ /**

DeleteRecordResponse.fields = proto3.util.newFieldList(() => []);
/**
* @generated from message uniswap.embeddedwallet.v1.DisconnectWalletRequest
*/
export class DisconnectWalletRequest extends Message {
constructor(data) {
super();
proto3.util.initPartial(data, this);
}
static fromBinary(bytes, options) {
return new DisconnectWalletRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new DisconnectWalletRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new DisconnectWalletRequest().fromJsonString(jsonString, options);
}
static equals(a, b) {
return proto3.util.equals(DisconnectWalletRequest, a, b);
}
}
DisconnectWalletRequest.runtime = proto3;
DisconnectWalletRequest.typeName = "uniswap.embeddedwallet.v1.DisconnectWalletRequest";
DisconnectWalletRequest.fields = proto3.util.newFieldList(() => []);
/**
* @generated from message uniswap.embeddedwallet.v1.DisconnectWalletResponse
*/
export class DisconnectWalletResponse extends Message {
constructor(data) {
super();
proto3.util.initPartial(data, this);
}
static fromBinary(bytes, options) {
return new DisconnectWalletResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new DisconnectWalletResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new DisconnectWalletResponse().fromJsonString(jsonString, options);
}
static equals(a, b) {
return proto3.util.equals(DisconnectWalletResponse, a, b);
}
}
DisconnectWalletResponse.runtime = proto3;
DisconnectWalletResponse.typeName = "uniswap.embeddedwallet.v1.DisconnectWalletResponse";
DisconnectWalletResponse.fields = proto3.util.newFieldList(() => []);
import { MethodKind } from "@bufbuild/protobuf";
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteRecordRequest, DeleteRecordResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js";
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteRecordRequest, DeleteRecordResponse, DisconnectWalletRequest, DisconnectWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js";
/**

@@ -123,1 +123,16 @@ * Initiates a challenge for given authenticator type

};
/**
* Disconnect a wallet from the web client, cleanup session and cookies
*
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.DisconnectWallet
*/
export declare const disconnectWallet: {
readonly localName: "disconnectWallet";
readonly name: "DisconnectWallet";
readonly kind: MethodKind.Unary;
readonly I: typeof DisconnectWalletRequest;
readonly O: typeof DisconnectWalletResponse;
readonly service: {
readonly typeName: "uniswap.embeddedwallet.v1.EmbeddedWalletService";
};
};

@@ -6,3 +6,3 @@ // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"

import { MethodKind } from "@bufbuild/protobuf";
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteRecordRequest, DeleteRecordResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js";
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteRecordRequest, DeleteRecordResponse, DisconnectWalletRequest, DisconnectWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js";
/**

@@ -128,1 +128,16 @@ * Initiates a challenge for given authenticator type

};
/**
* Disconnect a wallet from the web client, cleanup session and cookies
*
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.DisconnectWallet
*/
export const disconnectWallet = {
localName: "disconnectWallet",
name: "DisconnectWallet",
kind: MethodKind.Unary,
I: DisconnectWalletRequest,
O: DisconnectWalletResponse,
service: {
typeName: "uniswap.embeddedwallet.v1.EmbeddedWalletService"
}
};

2

package.json
{
"name": "@uniswap/client-embeddedwallet",
"version": "0.0.8",
"version": "0.0.9",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc