@imtbl/sdk 0.39.6 → 0.40.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.
package/dist/index.cjs CHANGED
@@ -4256,7 +4256,7 @@ class MultiRollupApiClients {
4256
4256
  }
4257
4257
 
4258
4258
  // eslint-disable-next-line @typescript-eslint/naming-convention
4259
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.39.6' };
4259
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.40.0' };
4260
4260
  const createConfig = ({ basePath, headers, }) => {
4261
4261
  if (!basePath.trim()) {
4262
4262
  throw Error('basePath can not be empty');
@@ -4316,7 +4316,7 @@ class APIError extends Error {
4316
4316
 
4317
4317
  /* eslint-disable implicit-arrow-linebreak */
4318
4318
  const defaultHeaders = {
4319
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.39.6',
4319
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.40.0',
4320
4320
  };
4321
4321
  /**
4322
4322
  * createAPIConfiguration to create a custom Configuration
@@ -4755,7 +4755,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
4755
4755
  chainID,
4756
4756
  coreContractAddress,
4757
4757
  registrationContractAddress,
4758
- sdkVersion: 'ts-immutable-sdk-0.39.6',
4758
+ sdkVersion: 'ts-immutable-sdk-0.40.0',
4759
4759
  });
4760
4760
  /**
4761
4761
  * Sets `sdkVersion` at the time of build
@@ -12899,8 +12899,8 @@ function getOrderbookConfig(environment) {
12899
12899
  switch (environment) {
12900
12900
  case Environment$1.SANDBOX:
12901
12901
  return {
12902
- seaportContractAddress: '0x3A0C2Ba54D6CBd3121F01b96dFd20e99D1696C9D',
12903
- zoneContractAddress: '0x2EA937879beeF3393853A74Ad62F9ad7DA0B9E81',
12902
+ seaportContractAddress: '0x7d117aA8BD6D31c4fa91722f246388f38ab1942c',
12903
+ zoneContractAddress: '0x8831867E347AB87FA30199C5B695F0A31604Bb52',
12904
12904
  apiEndpoint: 'https://api.sandbox.immutable.com',
12905
12905
  chainName: TESTNET_CHAIN_NAME,
12906
12906
  provider: new ethers.providers.JsonRpcProvider('https://rpc.testnet.immutable.com'),
@@ -12908,8 +12908,8 @@ function getOrderbookConfig(environment) {
12908
12908
  // not yet deployed
12909
12909
  case Environment$1.PRODUCTION:
12910
12910
  return {
12911
- seaportContractAddress: '',
12912
- zoneContractAddress: '',
12911
+ seaportContractAddress: '0x6c12aD6F0bD274191075Eb2E78D7dA5ba6453424',
12912
+ zoneContractAddress: '0x00338b92Bec262078B3e49BF12bbEA058916BF91',
12913
12913
  apiEndpoint: 'https://api.immutable.com',
12914
12914
  chainName: MAINNET_CHAIN_NAME,
12915
12915
  provider: new ethers.providers.JsonRpcProvider('https://rpc.immutable.com'),
@@ -13054,13 +13054,15 @@ class Orderbook {
13054
13054
  * transaction exists it must be signed and submitted to the chain before the fulfilment
13055
13055
  * transaction can be submitted or it will be reverted.
13056
13056
  * @param {string} listingId - The listingId to fulfil.
13057
- * @param {string} fulfillerAddress - The address of the account fulfilling the order.
13057
+ * @param {string} takerAddress - The address of the account fulfilling the order.
13058
+ * @param {FeeValue[]} takerFees - Taker ecosystem fees to be paid.
13058
13059
  * @return {FulfillOrderResponse} Approval and fulfilment transactions.
13059
13060
  */
13060
13061
  async fulfillOrder(listingId, takerAddress, takerFees) {
13061
13062
  const fulfillmentDataRes = await this.apiClient.fulfillmentData([
13062
13063
  {
13063
13064
  order_id: listingId,
13065
+ taker_address: takerAddress,
13064
13066
  fees: takerFees.map((fee) => ({
13065
13067
  amount: fee.amount,
13066
13068
  type: FeeType$1.TAKER_ECOSYSTEM,
@@ -13084,6 +13086,7 @@ class Orderbook {
13084
13086
  async fulfillBulkOrders(listings, takerAddress) {
13085
13087
  const fulfillmentDataRes = await this.apiClient.fulfillmentData(listings.map((listingRequest) => ({
13086
13088
  order_id: listingRequest.listingId,
13089
+ taker_address: takerAddress,
13087
13090
  fees: listingRequest.takerFees.map((fee) => ({
13088
13091
  amount: fee.amount,
13089
13092
  type: FeeType$1.TAKER_ECOSYSTEM,
@@ -35530,7 +35533,7 @@ const GAS_OVERRIDES = {
35530
35533
  maxPriorityFeePerGas: ethers.BigNumber.from(101e9),
35531
35534
  };
35532
35535
 
35533
- const SDK_VERSION_MARKER = '0.39.6';
35536
+ const SDK_VERSION_MARKER = '0.40.0';
35534
35537
  // This SDK version is replaced by the `yarn build` command ran on the root level
35535
35538
  const globalPackageVersion = () => SDK_VERSION_MARKER;
35536
35539
 
package/dist/index.d.ts CHANGED
@@ -16220,6 +16220,10 @@ type FulfillableOrder = {
16220
16220
 
16221
16221
  type FulfillmentDataRequest = {
16222
16222
  order_id: string;
16223
+ /**
16224
+ * Address of the intended account fulfilling the order
16225
+ */
16226
+ taker_address?: string;
16223
16227
  fees: Array<Fee$2>;
16224
16228
  };
16225
16229
 
@@ -16798,7 +16802,8 @@ declare class Orderbook {
16798
16802
  * transaction exists it must be signed and submitted to the chain before the fulfilment
16799
16803
  * transaction can be submitted or it will be reverted.
16800
16804
  * @param {string} listingId - The listingId to fulfil.
16801
- * @param {string} fulfillerAddress - The address of the account fulfilling the order.
16805
+ * @param {string} takerAddress - The address of the account fulfilling the order.
16806
+ * @param {FeeValue[]} takerFees - Taker ecosystem fees to be paid.
16802
16807
  * @return {FulfillOrderResponse} Approval and fulfilment transactions.
16803
16808
  */
16804
16809
  fulfillOrder(listingId: string, takerAddress: string, takerFees: FeeValue[]): Promise<FulfillOrderResponse>;
package/dist/index.js CHANGED
@@ -4234,7 +4234,7 @@ class MultiRollupApiClients {
4234
4234
  }
4235
4235
 
4236
4236
  // eslint-disable-next-line @typescript-eslint/naming-convention
4237
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.39.6' };
4237
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.40.0' };
4238
4238
  const createConfig = ({ basePath, headers, }) => {
4239
4239
  if (!basePath.trim()) {
4240
4240
  throw Error('basePath can not be empty');
@@ -4294,7 +4294,7 @@ class APIError extends Error {
4294
4294
 
4295
4295
  /* eslint-disable implicit-arrow-linebreak */
4296
4296
  const defaultHeaders = {
4297
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.39.6',
4297
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.40.0',
4298
4298
  };
4299
4299
  /**
4300
4300
  * createAPIConfiguration to create a custom Configuration
@@ -4733,7 +4733,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
4733
4733
  chainID,
4734
4734
  coreContractAddress,
4735
4735
  registrationContractAddress,
4736
- sdkVersion: 'ts-immutable-sdk-0.39.6',
4736
+ sdkVersion: 'ts-immutable-sdk-0.40.0',
4737
4737
  });
4738
4738
  /**
4739
4739
  * Sets `sdkVersion` at the time of build
@@ -12877,8 +12877,8 @@ function getOrderbookConfig(environment) {
12877
12877
  switch (environment) {
12878
12878
  case Environment$1.SANDBOX:
12879
12879
  return {
12880
- seaportContractAddress: '0x3A0C2Ba54D6CBd3121F01b96dFd20e99D1696C9D',
12881
- zoneContractAddress: '0x2EA937879beeF3393853A74Ad62F9ad7DA0B9E81',
12880
+ seaportContractAddress: '0x7d117aA8BD6D31c4fa91722f246388f38ab1942c',
12881
+ zoneContractAddress: '0x8831867E347AB87FA30199C5B695F0A31604Bb52',
12882
12882
  apiEndpoint: 'https://api.sandbox.immutable.com',
12883
12883
  chainName: TESTNET_CHAIN_NAME,
12884
12884
  provider: new providers.JsonRpcProvider('https://rpc.testnet.immutable.com'),
@@ -12886,8 +12886,8 @@ function getOrderbookConfig(environment) {
12886
12886
  // not yet deployed
12887
12887
  case Environment$1.PRODUCTION:
12888
12888
  return {
12889
- seaportContractAddress: '',
12890
- zoneContractAddress: '',
12889
+ seaportContractAddress: '0x6c12aD6F0bD274191075Eb2E78D7dA5ba6453424',
12890
+ zoneContractAddress: '0x00338b92Bec262078B3e49BF12bbEA058916BF91',
12891
12891
  apiEndpoint: 'https://api.immutable.com',
12892
12892
  chainName: MAINNET_CHAIN_NAME,
12893
12893
  provider: new providers.JsonRpcProvider('https://rpc.immutable.com'),
@@ -13032,13 +13032,15 @@ class Orderbook {
13032
13032
  * transaction exists it must be signed and submitted to the chain before the fulfilment
13033
13033
  * transaction can be submitted or it will be reverted.
13034
13034
  * @param {string} listingId - The listingId to fulfil.
13035
- * @param {string} fulfillerAddress - The address of the account fulfilling the order.
13035
+ * @param {string} takerAddress - The address of the account fulfilling the order.
13036
+ * @param {FeeValue[]} takerFees - Taker ecosystem fees to be paid.
13036
13037
  * @return {FulfillOrderResponse} Approval and fulfilment transactions.
13037
13038
  */
13038
13039
  async fulfillOrder(listingId, takerAddress, takerFees) {
13039
13040
  const fulfillmentDataRes = await this.apiClient.fulfillmentData([
13040
13041
  {
13041
13042
  order_id: listingId,
13043
+ taker_address: takerAddress,
13042
13044
  fees: takerFees.map((fee) => ({
13043
13045
  amount: fee.amount,
13044
13046
  type: FeeType$1.TAKER_ECOSYSTEM,
@@ -13062,6 +13064,7 @@ class Orderbook {
13062
13064
  async fulfillBulkOrders(listings, takerAddress) {
13063
13065
  const fulfillmentDataRes = await this.apiClient.fulfillmentData(listings.map((listingRequest) => ({
13064
13066
  order_id: listingRequest.listingId,
13067
+ taker_address: takerAddress,
13065
13068
  fees: listingRequest.takerFees.map((fee) => ({
13066
13069
  amount: fee.amount,
13067
13070
  type: FeeType$1.TAKER_ECOSYSTEM,
@@ -35508,7 +35511,7 @@ const GAS_OVERRIDES = {
35508
35511
  maxPriorityFeePerGas: BigNumber$1.from(101e9),
35509
35512
  };
35510
35513
 
35511
- const SDK_VERSION_MARKER = '0.39.6';
35514
+ const SDK_VERSION_MARKER = '0.40.0';
35512
35515
  // This SDK version is replaced by the `yarn build` command ran on the root level
35513
35516
  const globalPackageVersion = () => SDK_VERSION_MARKER;
35514
35517
 
@@ -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.40.0' };
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.40.0',
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.40.0",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",