@depthhq/maker-sdk 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/client.d.ts +2 -0
- package/dist/index.js +2 -1
- package/dist/index.node.js +2 -1
- package/package.json +2 -2
package/dist/client/client.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export declare class MakerClient {
|
|
|
35
35
|
static create(options: MakerOptions): Promise<MakerClient>;
|
|
36
36
|
private accountActions;
|
|
37
37
|
readonly account: (() => {
|
|
38
|
+
state: () => Promise<import("@depthhq/sdk").AccountState>;
|
|
38
39
|
history: (options?: Parameters<DepthClient["account"]["history"]>[0]) => Promise<import("@depthhq/sdk").PendingPage>;
|
|
39
40
|
cancelOpen: () => Promise<string>;
|
|
40
41
|
open: () => Promise<{
|
|
@@ -61,6 +62,7 @@ export declare class MakerClient {
|
|
|
61
62
|
}, clientNonce?: bigint) => Promise<import("@depthhq/sdk").TransferHandle>;
|
|
62
63
|
transferHandle: (nonce: bigint) => import("@depthhq/sdk").TransferHandle;
|
|
63
64
|
}) & {
|
|
65
|
+
state: () => Promise<import("@depthhq/sdk").AccountState>;
|
|
64
66
|
history: (options?: Parameters<DepthClient["account"]["history"]>[0]) => Promise<import("@depthhq/sdk").PendingPage>;
|
|
65
67
|
cancelOpen: () => Promise<string>;
|
|
66
68
|
open: () => Promise<{
|
package/dist/index.js
CHANGED
|
@@ -26448,7 +26448,7 @@ class WalletSession {
|
|
|
26448
26448
|
async request(path, init) {
|
|
26449
26449
|
if (!this.options.serviceUrl)
|
|
26450
26450
|
throw new Error("A maker service URL is required");
|
|
26451
|
-
const response = await fetch(`${this.options.serviceUrl.replace(/\/$/, "")}/v1/maker/${this.prefix}${path}`, {
|
|
26451
|
+
const response = await fetch(`${this.options.serviceUrl.replace(/\/$/, "")}/v1/maker/${`${this.prefix}${path}`.replace(/\/$/, "")}`, {
|
|
26452
26452
|
...init,
|
|
26453
26453
|
cache: "no-store",
|
|
26454
26454
|
signal: AbortSignal.timeout(15000)
|
|
@@ -27685,6 +27685,7 @@ class MakerClient {
|
|
|
27685
27685
|
}
|
|
27686
27686
|
accountActions() {
|
|
27687
27687
|
const actions = {
|
|
27688
|
+
state: async () => (await this.owned()).account.state(),
|
|
27688
27689
|
history: async (options) => (await this.owned()).account.history(options),
|
|
27689
27690
|
cancelOpen: () => this.funding.cancelOpenBalance(),
|
|
27690
27691
|
open: async () => this.funding.openBalance(),
|
package/dist/index.node.js
CHANGED
|
@@ -24962,7 +24962,7 @@ class WalletSession {
|
|
|
24962
24962
|
async request(path, init) {
|
|
24963
24963
|
if (!this.options.serviceUrl)
|
|
24964
24964
|
throw new Error("A maker service URL is required");
|
|
24965
|
-
const response = await fetch(`${this.options.serviceUrl.replace(/\/$/, "")}/v1/maker/${this.prefix}${path}`, {
|
|
24965
|
+
const response = await fetch(`${this.options.serviceUrl.replace(/\/$/, "")}/v1/maker/${`${this.prefix}${path}`.replace(/\/$/, "")}`, {
|
|
24966
24966
|
...init,
|
|
24967
24967
|
cache: "no-store",
|
|
24968
24968
|
signal: AbortSignal.timeout(15000)
|
|
@@ -26206,6 +26206,7 @@ class MakerClient {
|
|
|
26206
26206
|
}
|
|
26207
26207
|
accountActions() {
|
|
26208
26208
|
const actions = {
|
|
26209
|
+
state: async () => (await this.owned()).account.state(),
|
|
26209
26210
|
history: async (options) => (await this.owned()).account.history(options),
|
|
26210
26211
|
cancelOpen: () => this.funding.cancelOpenBalance(),
|
|
26211
26212
|
open: async () => this.funding.openBalance(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depthhq/maker-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@solana/web3.js": "1.99.0",
|
|
30
30
|
"buffer": "6.0.3",
|
|
31
31
|
"viem": "2.38.0",
|
|
32
|
-
"@depthhq/sdk": "0.1.
|
|
32
|
+
"@depthhq/sdk": "0.1.2",
|
|
33
33
|
"@depthhq/bindings": "0.1.1"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|