@tradeport/sui-trading-sdk 0.4.52 → 0.4.53
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SuiTradingClient.ts +3 -3
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -7552,12 +7552,12 @@ var SuiTradingClient = class {
|
|
|
7552
7552
|
this.allowedApiUsersForUnsharedKiosksMigration = ["tradeport.xyz", "mercato.xyz"];
|
|
7553
7553
|
this.apiUser = apiUser;
|
|
7554
7554
|
this.apiKey = apiKey;
|
|
7555
|
-
this.suiClient = createSuiClient_default(suiNodeUrl
|
|
7555
|
+
this.suiClient = createSuiClient_default(suiNodeUrl ?? (0, import_client2.getFullnodeUrl)("mainnet"));
|
|
7556
7556
|
this.kioskClient = createKioskClient_default(this.suiClient);
|
|
7557
7557
|
if (graphQLClient) {
|
|
7558
7558
|
setGraphqlClient(graphQLClient);
|
|
7559
7559
|
} else {
|
|
7560
|
-
setGraphqlClient(new import_graphql_request22.GraphQLClient(apiUrl));
|
|
7560
|
+
setGraphqlClient(new import_graphql_request22.GraphQLClient(apiUrl ?? "https://api.indexer.xyz/graphql"));
|
|
7561
7561
|
}
|
|
7562
7562
|
getGraphqlClient().setHeaders({
|
|
7563
7563
|
"x-api-user": apiUser,
|