@7kprotocol/sdk-ts 3.3.0 → 3.3.1
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/README.md +13 -0
- package/lib/cjs/config/fetchClient.js +4 -0
- package/lib/cjs/config/index.js +9 -0
- package/lib/cjs/libs/protocols/bluefinx/client.js +9 -3
- package/lib/cjs/types/config/fetchClient.d.ts.map +1 -1
- package/lib/cjs/types/config/index.d.ts +4 -0
- package/lib/cjs/types/config/index.d.ts.map +1 -1
- package/lib/cjs/types/index.d.ts +2 -0
- package/lib/cjs/types/index.d.ts.map +1 -1
- package/lib/cjs/types/libs/protocols/bluefinx/client.d.ts.map +1 -1
- package/lib/esm/config/fetchClient.js +4 -0
- package/lib/esm/config/index.js +9 -0
- package/lib/esm/libs/protocols/bluefinx/client.js +9 -3
- package/lib/esm/types/config/fetchClient.d.ts.map +1 -1
- package/lib/esm/types/config/index.d.ts +4 -0
- package/lib/esm/types/config/index.d.ts.map +1 -1
- package/lib/esm/types/index.d.ts +2 -0
- package/lib/esm/types/index.d.ts.map +1 -1
- package/lib/esm/types/libs/protocols/bluefinx/client.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -60,6 +60,19 @@ Config.setApiKey("YOUR_API_KEY");
|
|
|
60
60
|
console.log("API key", Config.getApiKey());
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
+
### Set BluefinX API key
|
|
64
|
+
|
|
65
|
+
Setting a BluefinX API key is optional. However, if you'd like to use one — for
|
|
66
|
+
example, to avoid rate limits when routing through BluefinX — you'll need to
|
|
67
|
+
request an API key directly from Bluefin.
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
import { Config } from "@7kprotocol/sdk-ts";
|
|
71
|
+
|
|
72
|
+
Config.setBluefinXApiKey("YOUR_BLUEFINX_API_KEY");
|
|
73
|
+
console.log("BluefinX API key", Config.getBluefinXApiKey());
|
|
74
|
+
```
|
|
75
|
+
|
|
63
76
|
### Set Sui Client
|
|
64
77
|
|
|
65
78
|
```typescript
|
|
@@ -5,9 +5,13 @@ const index_1 = require("./index");
|
|
|
5
5
|
async function fetchClient(input, init) {
|
|
6
6
|
const headers = new Headers(init?.headers);
|
|
7
7
|
const apiKey = (index_1.Config.getApiKey() || "").trim();
|
|
8
|
+
const bluefinXApiKey = (index_1.Config.getBluefinXApiKey() || "").trim();
|
|
8
9
|
if (apiKey) {
|
|
9
10
|
headers.set("apiKey", apiKey);
|
|
10
11
|
}
|
|
12
|
+
if (bluefinXApiKey) {
|
|
13
|
+
headers.set("Bluefin-X-API-Key", bluefinXApiKey);
|
|
14
|
+
}
|
|
11
15
|
const modifiedInit = {
|
|
12
16
|
...init,
|
|
13
17
|
headers,
|
package/lib/cjs/config/index.js
CHANGED
|
@@ -7,6 +7,7 @@ const HERMES_API = "https://hermes.pyth.network";
|
|
|
7
7
|
const WORMHOLE_STATE_ID = "0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c";
|
|
8
8
|
const PYTH_STATE_ID = "0x1f9310238ee9298fb703c3419030b35b22bb1cc37113e3bb5007c99aec79e5b8";
|
|
9
9
|
let apiKey = "";
|
|
10
|
+
let bluefinXApiKey = "";
|
|
10
11
|
let suiClient = new client_1.SuiClient({
|
|
11
12
|
url: (0, client_1.getFullnodeUrl)("mainnet"),
|
|
12
13
|
});
|
|
@@ -18,6 +19,12 @@ function setApiKey(key) {
|
|
|
18
19
|
function getApiKey() {
|
|
19
20
|
return apiKey;
|
|
20
21
|
}
|
|
22
|
+
function setBluefinXApiKey(key) {
|
|
23
|
+
bluefinXApiKey = key;
|
|
24
|
+
}
|
|
25
|
+
function getBluefinXApiKey() {
|
|
26
|
+
return bluefinXApiKey;
|
|
27
|
+
}
|
|
21
28
|
function getSuiClient() {
|
|
22
29
|
return suiClient;
|
|
23
30
|
}
|
|
@@ -39,6 +46,8 @@ function getPythConnection() {
|
|
|
39
46
|
const Config = {
|
|
40
47
|
setApiKey,
|
|
41
48
|
getApiKey,
|
|
49
|
+
setBluefinXApiKey,
|
|
50
|
+
getBluefinXApiKey,
|
|
42
51
|
setSuiClient,
|
|
43
52
|
getSuiClient,
|
|
44
53
|
setPythClient,
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.executeBluefinTx = exports.sponsorBluefinX = void 0;
|
|
4
|
+
const config_1 = require("../../../config");
|
|
4
5
|
const apiEndpoints_1 = require("../../../constants/apiEndpoints");
|
|
5
6
|
const request = async (path, body) => {
|
|
7
|
+
const headers = new Headers({
|
|
8
|
+
"Content-Type": "application/json",
|
|
9
|
+
});
|
|
10
|
+
const bluefinXApiKey = (config_1.Config.getBluefinXApiKey() || "").trim();
|
|
11
|
+
if (bluefinXApiKey) {
|
|
12
|
+
headers.set("Bluefin-X-API-Key", bluefinXApiKey);
|
|
13
|
+
}
|
|
6
14
|
const res = await fetch(`${apiEndpoints_1.API_ENDPOINTS.MAIN}/${path}`, {
|
|
7
15
|
method: "POST",
|
|
8
16
|
body: JSON.stringify(body),
|
|
9
|
-
headers
|
|
10
|
-
"Content-Type": "application/json",
|
|
11
|
-
},
|
|
17
|
+
headers,
|
|
12
18
|
});
|
|
13
19
|
return res.json();
|
|
14
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchClient.d.ts","sourceRoot":"","sources":["../../../../src/config/fetchClient.ts"],"names":[],"mappings":"AAEA,wBAAsB,WAAW,CAC/B,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"fetchClient.d.ts","sourceRoot":"","sources":["../../../../src/config/fetchClient.ts"],"names":[],"mappings":"AAEA,wBAAsB,WAAW,CAC/B,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,QAAQ,CAAC,CAkBnB"}
|
|
@@ -2,6 +2,8 @@ import { SuiClient } from "@mysten/sui/client";
|
|
|
2
2
|
import { SuiPriceServiceConnection, SuiPythClient } from "@pythnetwork/pyth-sui-js";
|
|
3
3
|
declare function setApiKey(key: string): void;
|
|
4
4
|
declare function getApiKey(): string;
|
|
5
|
+
declare function setBluefinXApiKey(key: string): void;
|
|
6
|
+
declare function getBluefinXApiKey(): string;
|
|
5
7
|
declare function getSuiClient(): SuiClient;
|
|
6
8
|
declare function setSuiClient(client: SuiClient): void;
|
|
7
9
|
declare function setPythClient(client: SuiPythClient): void;
|
|
@@ -11,6 +13,8 @@ declare function getPythConnection(): SuiPriceServiceConnection;
|
|
|
11
13
|
declare const Config: {
|
|
12
14
|
setApiKey: typeof setApiKey;
|
|
13
15
|
getApiKey: typeof getApiKey;
|
|
16
|
+
setBluefinXApiKey: typeof setBluefinXApiKey;
|
|
17
|
+
getBluefinXApiKey: typeof getBluefinXApiKey;
|
|
14
18
|
setSuiClient: typeof setSuiClient;
|
|
15
19
|
getSuiClient: typeof getSuiClient;
|
|
16
20
|
setPythClient: typeof setPythClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAkB,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,yBAAyB,EACzB,aAAa,EACd,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAkB,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,yBAAyB,EACzB,aAAa,EACd,MAAM,0BAA0B,CAAC;AAsBlC,iBAAS,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEpC;AAED,iBAAS,SAAS,IAAI,MAAM,CAE3B;AAED,iBAAS,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAE5C;AAED,iBAAS,iBAAiB,IAAI,MAAM,CAEnC;AAED,iBAAS,YAAY,IAAI,SAAS,CAEjC;AAED,iBAAS,YAAY,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAE7C;AAED,iBAAS,aAAa,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAElD;AAED,iBAAS,aAAa,IAAI,aAAa,CAEtC;AAED,iBAAS,iBAAiB,CAAC,UAAU,EAAE,yBAAyB,GAAG,IAAI,CAEtE;AAED,iBAAS,iBAAiB,IAAI,yBAAyB,CAEtD;AAED,QAAA,MAAM,MAAM;;;;;;;;;;;CAWX,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/lib/cjs/types/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ declare const _default: {
|
|
|
11
11
|
Config: {
|
|
12
12
|
setApiKey: (key: string) => void;
|
|
13
13
|
getApiKey: () => string;
|
|
14
|
+
setBluefinXApiKey: (key: string) => void;
|
|
15
|
+
getBluefinXApiKey: () => string;
|
|
14
16
|
setSuiClient: (client: import("@mysten/sui/dist/cjs/client").SuiClient) => void;
|
|
15
17
|
getSuiClient: () => import("@mysten/sui/dist/cjs/client").SuiClient;
|
|
16
18
|
setPythClient: (client: import("@pythnetwork/pyth-sui-js").SuiPythClient) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EACL,OAAO,EACP,cAAc,EACd,SAAS,EACT,QAAQ,EACR,cAAc,EACd,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAG7B,QAAA,MAAM,YAAY,uDAAsB,CAAC;AACzC,QAAA,MAAM,YAAY,mEAAsB,CAAC;AAEzC,OAAO,EAEL,MAAM,EAGN,YAAY,EACZ,YAAY,EAGZ,aAAa,EACb,cAAc,EACd,WAAW,EAGX,QAAQ,EACR,cAAc,EACd,OAAO,EACP,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,eAAe,EAGf,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EAGpB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,qBAAqB,GACtB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EACL,OAAO,EACP,cAAc,EACd,SAAS,EACT,QAAQ,EACR,cAAc,EACd,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAG7B,QAAA,MAAM,YAAY,uDAAsB,CAAC;AACzC,QAAA,MAAM,YAAY,mEAAsB,CAAC;AAEzC,OAAO,EAEL,MAAM,EAGN,YAAY,EACZ,YAAY,EAGZ,aAAa,EACb,cAAc,EACd,WAAW,EAGX,QAAQ,EACR,cAAc,EACd,OAAO,EACP,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,eAAe,EAGf,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EAGpB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,qBAAqB,GACtB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,wBAmCE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/protocols/bluefinx/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/protocols/bluefinx/client.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,cAAc,EACd,eAAe,EACf,YAAY,EACb,MAAM,SAAS,CAAC;AAiBjB,eAAO,MAAM,eAAe,GAAU,MAAM,cAAc,6BAEzD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAAU,IAAI,UAAU,EAAE,WAAW,MAAM,0BAMvE,CAAC"}
|
|
@@ -2,9 +2,13 @@ import { Config } from "./index";
|
|
|
2
2
|
export async function fetchClient(input, init) {
|
|
3
3
|
const headers = new Headers(init?.headers);
|
|
4
4
|
const apiKey = (Config.getApiKey() || "").trim();
|
|
5
|
+
const bluefinXApiKey = (Config.getBluefinXApiKey() || "").trim();
|
|
5
6
|
if (apiKey) {
|
|
6
7
|
headers.set("apiKey", apiKey);
|
|
7
8
|
}
|
|
9
|
+
if (bluefinXApiKey) {
|
|
10
|
+
headers.set("Bluefin-X-API-Key", bluefinXApiKey);
|
|
11
|
+
}
|
|
8
12
|
const modifiedInit = {
|
|
9
13
|
...init,
|
|
10
14
|
headers,
|
package/lib/esm/config/index.js
CHANGED
|
@@ -4,6 +4,7 @@ const HERMES_API = "https://hermes.pyth.network";
|
|
|
4
4
|
const WORMHOLE_STATE_ID = "0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c";
|
|
5
5
|
const PYTH_STATE_ID = "0x1f9310238ee9298fb703c3419030b35b22bb1cc37113e3bb5007c99aec79e5b8";
|
|
6
6
|
let apiKey = "";
|
|
7
|
+
let bluefinXApiKey = "";
|
|
7
8
|
let suiClient = new SuiClient({
|
|
8
9
|
url: getFullnodeUrl("mainnet"),
|
|
9
10
|
});
|
|
@@ -15,6 +16,12 @@ function setApiKey(key) {
|
|
|
15
16
|
function getApiKey() {
|
|
16
17
|
return apiKey;
|
|
17
18
|
}
|
|
19
|
+
function setBluefinXApiKey(key) {
|
|
20
|
+
bluefinXApiKey = key;
|
|
21
|
+
}
|
|
22
|
+
function getBluefinXApiKey() {
|
|
23
|
+
return bluefinXApiKey;
|
|
24
|
+
}
|
|
18
25
|
function getSuiClient() {
|
|
19
26
|
return suiClient;
|
|
20
27
|
}
|
|
@@ -36,6 +43,8 @@ function getPythConnection() {
|
|
|
36
43
|
const Config = {
|
|
37
44
|
setApiKey,
|
|
38
45
|
getApiKey,
|
|
46
|
+
setBluefinXApiKey,
|
|
47
|
+
getBluefinXApiKey,
|
|
39
48
|
setSuiClient,
|
|
40
49
|
getSuiClient,
|
|
41
50
|
setPythClient,
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
import { Config } from "../../../config";
|
|
1
2
|
import { API_ENDPOINTS } from "../../../constants/apiEndpoints";
|
|
2
3
|
const request = async (path, body) => {
|
|
4
|
+
const headers = new Headers({
|
|
5
|
+
"Content-Type": "application/json",
|
|
6
|
+
});
|
|
7
|
+
const bluefinXApiKey = (Config.getBluefinXApiKey() || "").trim();
|
|
8
|
+
if (bluefinXApiKey) {
|
|
9
|
+
headers.set("Bluefin-X-API-Key", bluefinXApiKey);
|
|
10
|
+
}
|
|
3
11
|
const res = await fetch(`${API_ENDPOINTS.MAIN}/${path}`, {
|
|
4
12
|
method: "POST",
|
|
5
13
|
body: JSON.stringify(body),
|
|
6
|
-
headers
|
|
7
|
-
"Content-Type": "application/json",
|
|
8
|
-
},
|
|
14
|
+
headers,
|
|
9
15
|
});
|
|
10
16
|
return res.json();
|
|
11
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchClient.d.ts","sourceRoot":"","sources":["../../../../src/config/fetchClient.ts"],"names":[],"mappings":"AAEA,wBAAsB,WAAW,CAC/B,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"fetchClient.d.ts","sourceRoot":"","sources":["../../../../src/config/fetchClient.ts"],"names":[],"mappings":"AAEA,wBAAsB,WAAW,CAC/B,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,QAAQ,CAAC,CAkBnB"}
|
|
@@ -2,6 +2,8 @@ import { SuiClient } from "@mysten/sui/client";
|
|
|
2
2
|
import { SuiPriceServiceConnection, SuiPythClient } from "@pythnetwork/pyth-sui-js";
|
|
3
3
|
declare function setApiKey(key: string): void;
|
|
4
4
|
declare function getApiKey(): string;
|
|
5
|
+
declare function setBluefinXApiKey(key: string): void;
|
|
6
|
+
declare function getBluefinXApiKey(): string;
|
|
5
7
|
declare function getSuiClient(): SuiClient;
|
|
6
8
|
declare function setSuiClient(client: SuiClient): void;
|
|
7
9
|
declare function setPythClient(client: SuiPythClient): void;
|
|
@@ -11,6 +13,8 @@ declare function getPythConnection(): SuiPriceServiceConnection;
|
|
|
11
13
|
declare const Config: {
|
|
12
14
|
setApiKey: typeof setApiKey;
|
|
13
15
|
getApiKey: typeof getApiKey;
|
|
16
|
+
setBluefinXApiKey: typeof setBluefinXApiKey;
|
|
17
|
+
getBluefinXApiKey: typeof getBluefinXApiKey;
|
|
14
18
|
setSuiClient: typeof setSuiClient;
|
|
15
19
|
getSuiClient: typeof getSuiClient;
|
|
16
20
|
setPythClient: typeof setPythClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAkB,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,yBAAyB,EACzB,aAAa,EACd,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAkB,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,yBAAyB,EACzB,aAAa,EACd,MAAM,0BAA0B,CAAC;AAsBlC,iBAAS,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEpC;AAED,iBAAS,SAAS,IAAI,MAAM,CAE3B;AAED,iBAAS,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAE5C;AAED,iBAAS,iBAAiB,IAAI,MAAM,CAEnC;AAED,iBAAS,YAAY,IAAI,SAAS,CAEjC;AAED,iBAAS,YAAY,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAE7C;AAED,iBAAS,aAAa,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAElD;AAED,iBAAS,aAAa,IAAI,aAAa,CAEtC;AAED,iBAAS,iBAAiB,CAAC,UAAU,EAAE,yBAAyB,GAAG,IAAI,CAEtE;AAED,iBAAS,iBAAiB,IAAI,yBAAyB,CAEtD;AAED,QAAA,MAAM,MAAM;;;;;;;;;;;CAWX,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/lib/esm/types/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ declare const _default: {
|
|
|
11
11
|
Config: {
|
|
12
12
|
setApiKey: (key: string) => void;
|
|
13
13
|
getApiKey: () => string;
|
|
14
|
+
setBluefinXApiKey: (key: string) => void;
|
|
15
|
+
getBluefinXApiKey: () => string;
|
|
14
16
|
setSuiClient: (client: import("@mysten/sui/dist/cjs/client").SuiClient) => void;
|
|
15
17
|
getSuiClient: () => import("@mysten/sui/dist/cjs/client").SuiClient;
|
|
16
18
|
setPythClient: (client: import("@pythnetwork/pyth-sui-js").SuiPythClient) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EACL,OAAO,EACP,cAAc,EACd,SAAS,EACT,QAAQ,EACR,cAAc,EACd,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAG7B,QAAA,MAAM,YAAY,uDAAsB,CAAC;AACzC,QAAA,MAAM,YAAY,mEAAsB,CAAC;AAEzC,OAAO,EAEL,MAAM,EAGN,YAAY,EACZ,YAAY,EAGZ,aAAa,EACb,cAAc,EACd,WAAW,EAGX,QAAQ,EACR,cAAc,EACd,OAAO,EACP,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,eAAe,EAGf,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EAGpB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,qBAAqB,GACtB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EACL,OAAO,EACP,cAAc,EACd,SAAS,EACT,QAAQ,EACR,cAAc,EACd,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAG7B,QAAA,MAAM,YAAY,uDAAsB,CAAC;AACzC,QAAA,MAAM,YAAY,mEAAsB,CAAC;AAEzC,OAAO,EAEL,MAAM,EAGN,YAAY,EACZ,YAAY,EAGZ,aAAa,EACb,cAAc,EACd,WAAW,EAGX,QAAQ,EACR,cAAc,EACd,OAAO,EACP,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,eAAe,EAGf,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EAGpB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,qBAAqB,GACtB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,wBAmCE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/protocols/bluefinx/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/protocols/bluefinx/client.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,cAAc,EACd,eAAe,EACf,YAAY,EACb,MAAM,SAAS,CAAC;AAiBjB,eAAO,MAAM,eAAe,GAAU,MAAM,cAAc,6BAEzD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAAU,IAAI,UAAU,EAAE,WAAW,MAAM,0BAMvE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@7kprotocol/sdk-ts",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"build:esm": "tsc -p ./configs/tsconfig.esm.json && mv lib/esm/index.js lib/esm/index.mjs",
|
|
41
41
|
"build:cjs": "tsc -p ./configs/tsconfig.cjs.json",
|
|
42
42
|
"prepack": "npm run build",
|
|
43
|
-
"test": "mocha --timeout
|
|
43
|
+
"test": "mocha --timeout 60000",
|
|
44
44
|
"publish:patch": "npm version patch --no-git-tag-version && npm publish --access public",
|
|
45
45
|
"publish:minor": "npm version minor --no-git-tag-version && npm publish --access public",
|
|
46
46
|
"publish:major": "npm version major --no-git-tag-version && npm publish --access public",
|