diff --git a/core/sdk/src/factory/conveyor/eth/EthereumPort.ts b/core/sdk/src/factory/conveyor/eth/EthereumPort.ts index 50214732..5efcc9c0 100644 --- a/core/sdk/src/factory/conveyor/eth/EthereumPort.ts +++ b/core/sdk/src/factory/conveyor/eth/EthereumPort.ts @@ -126,17 +126,17 @@ export class EthereumPort { }; } - async getShopByUuid(uuid: string): Promise<{ result: ShopResponse }> { - return axiosInstance.get(`${this.apiPath}/shop/${uuid}`).then((res) => res.data); + getShopByUuid(shopUuid: string): Promise<{ result: ShopResponse }> { + return axiosInstance.get(`${this.apiPath}/shop/${shopUuid}`).then((res) => res.data); } - async getOrderByUuid(uuid: string): Promise { - return axiosInstance.get(`${this.apiPath}/order/${uuid}`).then((res) => res.data.result); + getOrderByUuid(orderUuid: string): Promise { + return axiosInstance.get(`${this.apiPath}/order/${orderUuid}`).then((res) => res.data.result); } - async getFulfillOrderPayloadByUuid(uuid: string, buyerAddress: string): Promise { + getFulfillOrderPayloadByUuidAndBuyerAddress(orderUuid: string, buyerAddress: string): Promise { return axiosInstance - .get(`${this.apiPath}/order/payload/${uuid}/buyer/${buyerAddress}`) + .get(`${this.apiPath}/order/payload/${orderUuid}/buyer/${buyerAddress}`) .then((res) => res.data.result); } diff --git a/core/sdk/src/shop/eth/EthCandyShop.ts b/core/sdk/src/shop/eth/EthCandyShop.ts index 876e6898..d9dc2482 100644 --- a/core/sdk/src/shop/eth/EthCandyShop.ts +++ b/core/sdk/src/shop/eth/EthCandyShop.ts @@ -171,4 +171,9 @@ export class EthCandyShop extends BaseShop { const txHash = await this.ethereumPort.cancelOrder(wallet, orderUuid); return txHash; } + + getNftPurchasePayload(params: { buyerAddress: string; orderUuid: string }) { + const { buyerAddress, orderUuid } = params; + return this.ethereumPort.getFulfillOrderPayloadByUuidAndBuyerAddress(orderUuid, buyerAddress); + } }