@l2-technology/sensei-client
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -5,5 +5,2 @@ export interface SenseiClientConfig { | ||
} | ||
export interface SenseiConfig { | ||
electrumUrl: string; | ||
} | ||
export interface NodeStatus { | ||
@@ -22,3 +19,2 @@ created: boolean; | ||
passphrase: string; | ||
electrumUrl: string; | ||
start: boolean; | ||
@@ -172,6 +168,4 @@ } | ||
get(url: string): Promise<any>; | ||
getConfig(): Promise<SenseiConfig>; | ||
updateConfig({ electrumUrl }: SenseiConfig): Promise<void>; | ||
getStatus(): Promise<NodeStatus>; | ||
init({ username, alias, passphrase, electrumUrl, start }: InitParams): Promise<InitResponse>; | ||
init({ username, alias, passphrase, start }: InitParams): Promise<InitResponse>; | ||
login(username: string, passphrase: string): Promise<LoginResponse>; | ||
@@ -178,0 +172,0 @@ logout(): Promise<void>; |
@@ -53,19 +53,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
getConfig() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const config = yield this.get(`${this.basePath}/v1/config`); | ||
return { | ||
electrumUrl: config.electrum_url, | ||
}; | ||
}); | ||
} | ||
updateConfig({ electrumUrl }) { | ||
return this.post(`${this.basePath}/v1/config`, { | ||
electrum_url: electrumUrl, | ||
}); | ||
} | ||
getStatus() { | ||
return this.get(`${this.basePath}/v1/status`); | ||
} | ||
init({ username, alias, passphrase, electrumUrl, start }) { | ||
init({ username, alias, passphrase, start }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -76,3 +63,2 @@ const response = yield this.post(`${this.basePath}/v1/init`, { | ||
passphrase, | ||
electrum_url: electrumUrl, | ||
start, | ||
@@ -79,0 +65,0 @@ }); |
{ | ||
"name": "@l2-technology/sensei-client", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A javascript client for the Sensei HTTP API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
22657
539