@imtbl/sdk 0.39.6 → 0.41.0-alpha

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.
@@ -1028,6 +1028,10 @@ type FulfillableOrder = {
1028
1028
 
1029
1029
  type FulfillmentDataRequest = {
1030
1030
  order_id: string;
1031
+ /**
1032
+ * Address of the intended account fulfilling the order
1033
+ */
1034
+ taker_address?: string;
1031
1035
  fees: Array<Fee$1>;
1032
1036
  };
1033
1037
 
@@ -1606,7 +1610,8 @@ declare class Orderbook {
1606
1610
  * transaction exists it must be signed and submitted to the chain before the fulfilment
1607
1611
  * transaction can be submitted or it will be reverted.
1608
1612
  * @param {string} listingId - The listingId to fulfil.
1609
- * @param {string} fulfillerAddress - The address of the account fulfilling the order.
1613
+ * @param {string} takerAddress - The address of the account fulfilling the order.
1614
+ * @param {FeeValue[]} takerFees - Taker ecosystem fees to be paid.
1610
1615
  * @return {FulfillOrderResponse} Approval and fulfilment transactions.
1611
1616
  */
1612
1617
  fulfillOrder(listingId: string, takerAddress: string, takerFees: FeeValue[]): Promise<FulfillOrderResponse>;
package/dist/orderbook.js CHANGED
@@ -1279,8 +1279,8 @@ function getOrderbookConfig(environment) {
1279
1279
  switch (environment) {
1280
1280
  case Environment.SANDBOX:
1281
1281
  return {
1282
- seaportContractAddress: '0x3A0C2Ba54D6CBd3121F01b96dFd20e99D1696C9D',
1283
- zoneContractAddress: '0x2EA937879beeF3393853A74Ad62F9ad7DA0B9E81',
1282
+ seaportContractAddress: '0x7d117aA8BD6D31c4fa91722f246388f38ab1942c',
1283
+ zoneContractAddress: '0x8831867E347AB87FA30199C5B695F0A31604Bb52',
1284
1284
  apiEndpoint: 'https://api.sandbox.immutable.com',
1285
1285
  chainName: TESTNET_CHAIN_NAME,
1286
1286
  provider: new providers.JsonRpcProvider('https://rpc.testnet.immutable.com'),
@@ -1288,8 +1288,8 @@ function getOrderbookConfig(environment) {
1288
1288
  // not yet deployed
1289
1289
  case Environment.PRODUCTION:
1290
1290
  return {
1291
- seaportContractAddress: '',
1292
- zoneContractAddress: '',
1291
+ seaportContractAddress: '0x6c12aD6F0bD274191075Eb2E78D7dA5ba6453424',
1292
+ zoneContractAddress: '0x00338b92Bec262078B3e49BF12bbEA058916BF91',
1293
1293
  apiEndpoint: 'https://api.immutable.com',
1294
1294
  chainName: MAINNET_CHAIN_NAME,
1295
1295
  provider: new providers.JsonRpcProvider('https://rpc.immutable.com'),
@@ -1434,13 +1434,15 @@ class Orderbook {
1434
1434
  * transaction exists it must be signed and submitted to the chain before the fulfilment
1435
1435
  * transaction can be submitted or it will be reverted.
1436
1436
  * @param {string} listingId - The listingId to fulfil.
1437
- * @param {string} fulfillerAddress - The address of the account fulfilling the order.
1437
+ * @param {string} takerAddress - The address of the account fulfilling the order.
1438
+ * @param {FeeValue[]} takerFees - Taker ecosystem fees to be paid.
1438
1439
  * @return {FulfillOrderResponse} Approval and fulfilment transactions.
1439
1440
  */
1440
1441
  async fulfillOrder(listingId, takerAddress, takerFees) {
1441
1442
  const fulfillmentDataRes = await this.apiClient.fulfillmentData([
1442
1443
  {
1443
1444
  order_id: listingId,
1445
+ taker_address: takerAddress,
1444
1446
  fees: takerFees.map((fee) => ({
1445
1447
  amount: fee.amount,
1446
1448
  type: FeeType.TAKER_ECOSYSTEM,
@@ -1464,6 +1466,7 @@ class Orderbook {
1464
1466
  async fulfillBulkOrders(listings, takerAddress) {
1465
1467
  const fulfillmentDataRes = await this.apiClient.fulfillmentData(listings.map((listingRequest) => ({
1466
1468
  order_id: listingRequest.listingId,
1469
+ taker_address: takerAddress,
1467
1470
  fees: listingRequest.takerFees.map((fee) => ({
1468
1471
  amount: fee.amount,
1469
1472
  type: FeeType.TAKER_ECOSYSTEM,
package/dist/passport.js CHANGED
@@ -2349,7 +2349,7 @@ class MultiRollupApiClients {
2349
2349
  }
2350
2350
 
2351
2351
  // eslint-disable-next-line @typescript-eslint/naming-convention
2352
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.39.6' };
2352
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.41.0-alpha' };
2353
2353
  const createConfig = ({ basePath, headers, }) => {
2354
2354
  if (!basePath.trim()) {
2355
2355
  throw Error('basePath can not be empty');
@@ -2405,7 +2405,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2405
2405
  chainID,
2406
2406
  coreContractAddress,
2407
2407
  registrationContractAddress,
2408
- sdkVersion: 'ts-immutable-sdk-0.39.6',
2408
+ sdkVersion: 'ts-immutable-sdk-0.41.0-alpha',
2409
2409
  });
2410
2410
  /**
2411
2411
  * Sets `sdkVersion` at the time of build
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "0.39.6",
4
+ "version": "0.41.0-alpha",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",