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

@cartridge/controller

Package Overview
Dependencies
Maintainers
3
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cartridge/controller - npm Package Compare versions

Comparing version 0.1.68 to 0.1.69

6

lib/index.d.ts
/// <reference types="node" />
import { AccountInterface } from "starknet";
import { Session, Policy } from "./types";
import { AsyncMethodReturns } from '@cartridge/penpal';
import { Session, Keychain, Policy } from "./types";
import { BigNumberish } from "starknet/dist/utils/number";

@@ -8,3 +9,3 @@ declare class Controller {

private connection?;
private keychain?;
keychain?: AsyncMethodReturns<Keychain>;
private policies;

@@ -33,3 +34,2 @@ private url;

} | null>;
logout(): Promise<void | null>;
provision(address: string): Promise<string | null>;

@@ -36,0 +36,0 @@ connect(): Promise<AccountInterface | null>;

@@ -160,11 +160,2 @@ "use strict";

}
logout() {
return __awaiter(this, void 0, void 0, function* () {
if (!this.keychain) {
console.error("not ready for connect");
return null;
}
return this.keychain.logout();
});
}
provision(address) {

@@ -171,0 +162,0 @@ return __awaiter(this, void 0, void 0, function* () {

@@ -35,2 +35,4 @@ import { Abi, Call, InvocationsDetails, typedData, InvokeFunctionResponse, Signature, InvocationsSignerDetails, EstimateFeeDetails, EstimateFee, DeclareSignerDetails, DeclareContractPayload } from "starknet";

logout(): Promise<void>;
session(): Promise<Session>;
sessions(): Promise<Session[]>;
signMessage(typedData: typedData.TypedData, account: string): Promise<Signature>;

@@ -37,0 +39,0 @@ signTransaction(transactions: Call[], transactionsDetail: InvocationsSignerDetails, abis?: Abi[]): Promise<Signature>;

{
"name": "@cartridge/controller",
"version": "0.1.68",
"version": "0.1.69",
"description": "Cartridge Controller",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

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