@hypercerts-org/marketplace-sdk 0.1.2 → 0.1.3
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.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/utils/api.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -4817,7 +4817,7 @@ class ApiClient {
|
|
4817
4817
|
* @param chainId Chain ID
|
4818
4818
|
*/
|
4819
4819
|
this.fetchOrderNonce = async ({ address, chainId }) => {
|
4820
|
-
return fetch(`${this.
|
4820
|
+
return fetch(`${this._baseUrl}/marketplace/order-nonce/`, {
|
4821
4821
|
method: "POST",
|
4822
4822
|
headers: {
|
4823
4823
|
"Content-Type": "application/json",
|
@@ -4840,7 +4840,7 @@ class ApiClient {
|
|
4840
4840
|
*/
|
4841
4841
|
this.registerOrder = async ({ order, signer, signature, quoteType, chainId, }) => {
|
4842
4842
|
const { globalNonce, ...orderWithoutGlobalNonce } = order;
|
4843
|
-
return fetch(`${this.
|
4843
|
+
return fetch(`${this._baseUrl}/marketplace/order/`, {
|
4844
4844
|
method: "POST",
|
4845
4845
|
headers: {
|
4846
4846
|
"Content-Type": "application/json",
|
package/dist/index.esm.js
CHANGED
@@ -4815,7 +4815,7 @@ class ApiClient {
|
|
4815
4815
|
* @param chainId Chain ID
|
4816
4816
|
*/
|
4817
4817
|
this.fetchOrderNonce = async ({ address, chainId }) => {
|
4818
|
-
return fetch(`${this.
|
4818
|
+
return fetch(`${this._baseUrl}/marketplace/order-nonce/`, {
|
4819
4819
|
method: "POST",
|
4820
4820
|
headers: {
|
4821
4821
|
"Content-Type": "application/json",
|
@@ -4838,7 +4838,7 @@ class ApiClient {
|
|
4838
4838
|
*/
|
4839
4839
|
this.registerOrder = async ({ order, signer, signature, quoteType, chainId, }) => {
|
4840
4840
|
const { globalNonce, ...orderWithoutGlobalNonce } = order;
|
4841
|
-
return fetch(`${this.
|
4841
|
+
return fetch(`${this._baseUrl}/marketplace/order/`, {
|
4842
4842
|
method: "POST",
|
4843
4843
|
headers: {
|
4844
4844
|
"Content-Type": "application/json",
|
package/dist/utils/api.d.ts
CHANGED
@@ -85,7 +85,8 @@ export declare const supabaseHypercerts: import("@supabase/supabase-js").Supabas
|
|
85
85
|
id?: number | undefined;
|
86
86
|
};
|
87
87
|
Relationships: [];
|
88
|
-
};
|
88
|
+
};
|
89
|
+
/**
|
89
90
|
* Fetch existing open orders from the marketplace API
|
90
91
|
* @param signer address of the user that created the order
|
91
92
|
* @param claimTokenIds a list of claimTokenIds - will return any order that is for one or more of these claimTokenIds
|