@cartridge/controller
Advanced tools
Comparing version 0.1.68 to 0.1.69
/// <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
70256
1120