@bluefin-exchange/pro-sdk 2.0.0-beta.0 → 2.0.0-beta.2
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 +2 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/{types/src → src}/api.d.ts +7 -8
- package/dist/{esm/src → src}/api.js +609 -811
- package/dist/{types/src → src}/base.d.ts +1 -2
- package/dist/{esm/src → src}/base.js +5 -3
- package/dist/{types/src → src}/common.d.ts +2 -3
- package/dist/{esm/src → src}/common.js +23 -40
- package/dist/{types/src → src}/configuration.d.ts +0 -1
- package/dist/src/configuration.js +100 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.js +6 -0
- package/dist/{types/src → src}/request-signer.d.ts +3 -3
- package/dist/src/request-signer.js +208 -0
- package/dist/{types/src → src}/sdk.d.ts +9 -10
- package/dist/src/sdk.js +817 -0
- package/dist/{types/src → src}/utils.d.ts +0 -1
- package/dist/{esm/src → src}/utils.js +0 -1
- package/dist/{types/src → src}/websocket.d.ts +0 -1
- package/dist/src/websocket.js +138 -0
- package/package.json +11 -11
- package/dist/esm/example.js +0 -276
- package/dist/esm/example.js.map +0 -1
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/src/api.js.map +0 -1
- package/dist/esm/src/base.js.map +0 -1
- package/dist/esm/src/common.js.map +0 -1
- package/dist/esm/src/configuration.js +0 -41
- package/dist/esm/src/configuration.js.map +0 -1
- package/dist/esm/src/index.js +0 -7
- package/dist/esm/src/index.js.map +0 -1
- package/dist/esm/src/request-signer.js +0 -229
- package/dist/esm/src/request-signer.js.map +0 -1
- package/dist/esm/src/sdk.js +0 -859
- package/dist/esm/src/sdk.js.map +0 -1
- package/dist/esm/src/utils.js.map +0 -1
- package/dist/esm/src/websocket.js +0 -155
- package/dist/esm/src/websocket.js.map +0 -1
- package/dist/types/example.d.ts +0 -2
- package/dist/types/example.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/src/api.d.ts.map +0 -1
- package/dist/types/src/base.d.ts.map +0 -1
- package/dist/types/src/common.d.ts.map +0 -1
- package/dist/types/src/configuration.d.ts.map +0 -1
- package/dist/types/src/index.d.ts +0 -7
- package/dist/types/src/index.d.ts.map +0 -1
- package/dist/types/src/request-signer.d.ts.map +0 -1
- package/dist/types/src/sdk.d.ts.map +0 -1
- package/dist/types/src/utils.d.ts.map +0 -1
- package/dist/types/src/websocket.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -33,8 +33,8 @@ import {
|
|
|
33
33
|
makeSigner,
|
|
34
34
|
} from "@bluefin-exchange/pro-sdk";
|
|
35
35
|
import { SuiJsonRpcClient } from "@mysten/sui/jsonRpc";
|
|
36
|
-
import { Ed25519Keypair } from "@
|
|
37
|
-
import { hexToBytes } from "@noble/hashes/utils";
|
|
36
|
+
import { Ed25519Keypair } from "@mysten/sui/keypairs/ed25519";
|
|
37
|
+
import { hexToBytes } from "@noble/hashes/utils.js";
|
|
38
38
|
|
|
39
39
|
// Create wallet from private key
|
|
40
40
|
const wallet = Ed25519Keypair.fromSecretKey(
|
|
@@ -253,4 +253,3 @@ The SDK supports three environments:
|
|
|
253
253
|
Each environment has different API endpoints configured automatically.
|
|
254
254
|
|
|
255
255
|
See [example.ts](./example.ts) for the complete example code.
|
|
256
|
-
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index.js";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index.js";
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { Configuration } from './configuration';
|
|
12
|
+
import type { Configuration } from './configuration.js';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
-
import type { RequestArgs } from './base';
|
|
15
|
-
import { BaseAPI } from './base';
|
|
14
|
+
import type { RequestArgs } from './base.js';
|
|
15
|
+
import { BaseAPI } from './base.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -6679,7 +6679,7 @@ export declare const ExchangeApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
6679
6679
|
* @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
|
|
6680
6680
|
* @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
|
|
6681
6681
|
* @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
|
|
6682
|
-
* @param {number} [limit] Default 50; max
|
|
6682
|
+
* @param {number} [limit] Default 50; max 1000.
|
|
6683
6683
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
6684
6684
|
* @param {*} [options] Override http request option.
|
|
6685
6685
|
* @throws {RequiredError}
|
|
@@ -6793,7 +6793,7 @@ export declare const ExchangeApiFp: (configuration?: Configuration) => {
|
|
|
6793
6793
|
* @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
|
|
6794
6794
|
* @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
|
|
6795
6795
|
* @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
|
|
6796
|
-
* @param {number} [limit] Default 50; max
|
|
6796
|
+
* @param {number} [limit] Default 50; max 1000.
|
|
6797
6797
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
6798
6798
|
* @param {*} [options] Override http request option.
|
|
6799
6799
|
* @throws {RequiredError}
|
|
@@ -6907,7 +6907,7 @@ export declare const ExchangeApiFactory: (configuration?: Configuration, basePat
|
|
|
6907
6907
|
* @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
|
|
6908
6908
|
* @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
|
|
6909
6909
|
* @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
|
|
6910
|
-
* @param {number} [limit] Default 50; max
|
|
6910
|
+
* @param {number} [limit] Default 50; max 1000.
|
|
6911
6911
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
6912
6912
|
* @param {*} [options] Override http request option.
|
|
6913
6913
|
* @throws {RequiredError}
|
|
@@ -7030,7 +7030,7 @@ export declare class ExchangeApi extends BaseAPI {
|
|
|
7030
7030
|
* @param {LeaderboardInterval} [interval] The interval to get the leaderboard for. Default or Unspecified is 7d.
|
|
7031
7031
|
* @param {GetLeaderboardSortByEnum} [sortBy] The field to sort by. Default or Unspecified is accountValue.
|
|
7032
7032
|
* @param {SortOrder} [sortOrder] The sort order, either ascending (ASC) or descending (DESC). Default or UNSPECIFIED is DESC.
|
|
7033
|
-
* @param {number} [limit] Default 50; max
|
|
7033
|
+
* @param {number} [limit] Default 50; max 1000.
|
|
7034
7034
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
7035
7035
|
* @param {*} [options] Override http request option.
|
|
7036
7036
|
* @throws {RequiredError}
|
|
@@ -8486,4 +8486,3 @@ export declare class VeraPointsApi extends BaseAPI {
|
|
|
8486
8486
|
*/
|
|
8487
8487
|
recordSession(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SessionResponse, any, {}>>;
|
|
8488
8488
|
}
|
|
8489
|
-
//# sourceMappingURL=api.d.ts.map
|