@opensea/sdk 10.0.0 → 10.2.0

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.
@@ -36,8 +36,9 @@ export class FulfillmentManager {
36
36
 
37
37
  /**
38
38
  * Fulfill a private order for a designated address.
39
+ * The order must have a taker address set (i.e., it is a private listing).
39
40
  */
40
- private async fulfillPrivateOrder({
41
+ async fulfillPrivateOrder({
41
42
  order,
42
43
  accountAddress,
43
44
  domain,
@@ -48,6 +49,7 @@ export class FulfillmentManager {
48
49
  domain?: string
49
50
  overrides?: Record<string, unknown>
50
51
  }): Promise<string> {
52
+ await this.context.requireAccountIsAvailable(accountAddress)
51
53
  if (!order.taker?.address) {
52
54
  throw new Error(
53
55
  "Order is not a private listing - must have a taker address",
package/src/viem.ts CHANGED
@@ -38,6 +38,7 @@ import {
38
38
  } from "./utils/utils"
39
39
 
40
40
  // Re-export everything from the main entry point
41
+ export { OpenSeaAPI } from "./api/api"
41
42
  export * from "./api/types"
42
43
  export * from "./constants"
43
44
  export * from "./orders/types"