@imtbl/sdk 0.1.10-alpha.3 → 0.1.10-alpha.4

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.
@@ -5406,7 +5406,7 @@ class APIError extends Error {
5406
5406
 
5407
5407
  /* eslint-disable implicit-arrow-linebreak */
5408
5408
  const defaultHeaders = {
5409
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.1.10-alpha.3',
5409
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.1.10-alpha.4',
5410
5410
  };
5411
5411
  /**
5412
5412
  * createAPIConfiguration to create a custom Configuration
@@ -4,7 +4,7 @@ import { useEffect } from 'react';
4
4
  function $parcel$export(e, n, v, s) {
5
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
6
  }
7
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.1.10-alpha.3";
7
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.1.10-alpha.4";
8
8
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
9
9
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
10
10
 
@@ -16,7 +16,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
16
16
  chainID,
17
17
  coreContractAddress,
18
18
  registrationContractAddress,
19
- sdkVersion: 'ts-immutable-sdk-0.1.10-alpha.3',
19
+ sdkVersion: 'ts-immutable-sdk-0.1.10-alpha.4',
20
20
  });
21
21
  /**
22
22
  * Sets `sdkVersion` at the time of build
package/dist/index.cjs CHANGED
@@ -9,7 +9,6 @@ var BN$2 = require('bn.js');
9
9
  var encUtils = require('enc-utils');
10
10
  var providers = require('@ethersproject/providers');
11
11
  var FormData$2 = require('form-data');
12
- var constants = require('@opensea/seaport-js/lib/constants');
13
12
  var ethers = require('ethers');
14
13
  var dotenv = require('dotenv');
15
14
  var seaportJs = require('@opensea/seaport-js');
@@ -5458,7 +5457,7 @@ class APIError extends Error {
5458
5457
 
5459
5458
  /* eslint-disable implicit-arrow-linebreak */
5460
5459
  const defaultHeaders = {
5461
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.1.10-alpha.3',
5460
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.1.10-alpha.4',
5462
5461
  };
5463
5462
  /**
5464
5463
  * createAPIConfiguration to create a custom Configuration
@@ -5724,7 +5723,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
5724
5723
  chainID,
5725
5724
  coreContractAddress,
5726
5725
  registrationContractAddress,
5727
- sdkVersion: 'ts-immutable-sdk-0.1.10-alpha.3',
5726
+ sdkVersion: 'ts-immutable-sdk-0.1.10-alpha.4',
5728
5727
  });
5729
5728
  /**
5730
5729
  * Sets `sdkVersion` at the time of build
@@ -11476,6 +11475,7 @@ var OrderStatus;
11476
11475
  // There is some bundling issue that is preventing this from working
11477
11476
  const SEAPORT_CONTRACT_NAME = 'ImmutableSeaport';
11478
11477
  const SEAPORT_CONTRACT_VERSION_V1_4 = '1.4';
11478
+ const SEAPORT_CONTRACT_VERSION_V1_5 = '1.5';
11479
11479
  const EIP_712_ORDER_TYPE = {
11480
11480
  OrderComponents: [
11481
11481
  { name: 'offerer', type: 'address' },
@@ -11727,7 +11727,7 @@ class Seaport {
11727
11727
  const { chainId } = await this.provider.getNetwork();
11728
11728
  const domainData = {
11729
11729
  name: SEAPORT_CONTRACT_NAME,
11730
- version: constants.SEAPORT_CONTRACT_VERSION_V1_4,
11730
+ version: SEAPORT_CONTRACT_VERSION_V1_4,
11731
11731
  chainId,
11732
11732
  verifyingContract: this.seaportContractAddress,
11733
11733
  };
@@ -11739,9 +11739,9 @@ class Seaport {
11739
11739
  }
11740
11740
  getSeaportLib(order) {
11741
11741
  const seaportAddress = order?.protocol_data?.seaport_address ?? this.seaportContractAddress;
11742
- let seaportVersion = constants.SEAPORT_CONTRACT_VERSION_V1_4;
11743
- if (order?.protocol_data?.seaport_version === constants.SEAPORT_CONTRACT_VERSION_V1_5) {
11744
- seaportVersion = constants.SEAPORT_CONTRACT_VERSION_V1_5;
11742
+ let seaportVersion = SEAPORT_CONTRACT_VERSION_V1_4;
11743
+ if (order?.protocol_data?.seaport_version === SEAPORT_CONTRACT_VERSION_V1_5) {
11744
+ seaportVersion = SEAPORT_CONTRACT_VERSION_V1_5;
11745
11745
  }
11746
11746
  return this.seaportLibFactory.create(seaportVersion, seaportAddress);
11747
11747
  }
@@ -27763,7 +27763,7 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
27763
27763
  function $parcel$export(e, n, v, s) {
27764
27764
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
27765
27765
  }
27766
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.1.10-alpha.3";
27766
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.1.10-alpha.4";
27767
27767
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
27768
27768
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
27769
27769
 
package/dist/index.js CHANGED
@@ -8,7 +8,6 @@ import BN$2 from 'bn.js';
8
8
  import * as encUtils from 'enc-utils';
9
9
  import { Web3Provider, JsonRpcProvider } from '@ethersproject/providers';
10
10
  import FormData$2 from 'form-data';
11
- import { SEAPORT_CONTRACT_VERSION_V1_4 as SEAPORT_CONTRACT_VERSION_V1_4$1, SEAPORT_CONTRACT_VERSION_V1_5 } from '@opensea/seaport-js/lib/constants';
12
11
  import { providers, BigNumber as BigNumber$1, constants, utils as utils$2, Contract as Contract$1, ethers, ContractFactory } from 'ethers';
13
12
  import dotenv from 'dotenv';
14
13
  import { Seaport as Seaport$1 } from '@opensea/seaport-js';
@@ -5438,7 +5437,7 @@ class APIError extends Error {
5438
5437
 
5439
5438
  /* eslint-disable implicit-arrow-linebreak */
5440
5439
  const defaultHeaders = {
5441
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.1.10-alpha.3',
5440
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.1.10-alpha.4',
5442
5441
  };
5443
5442
  /**
5444
5443
  * createAPIConfiguration to create a custom Configuration
@@ -5704,7 +5703,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
5704
5703
  chainID,
5705
5704
  coreContractAddress,
5706
5705
  registrationContractAddress,
5707
- sdkVersion: 'ts-immutable-sdk-0.1.10-alpha.3',
5706
+ sdkVersion: 'ts-immutable-sdk-0.1.10-alpha.4',
5708
5707
  });
5709
5708
  /**
5710
5709
  * Sets `sdkVersion` at the time of build
@@ -11456,6 +11455,7 @@ var OrderStatus;
11456
11455
  // There is some bundling issue that is preventing this from working
11457
11456
  const SEAPORT_CONTRACT_NAME = 'ImmutableSeaport';
11458
11457
  const SEAPORT_CONTRACT_VERSION_V1_4 = '1.4';
11458
+ const SEAPORT_CONTRACT_VERSION_V1_5 = '1.5';
11459
11459
  const EIP_712_ORDER_TYPE = {
11460
11460
  OrderComponents: [
11461
11461
  { name: 'offerer', type: 'address' },
@@ -11707,7 +11707,7 @@ class Seaport {
11707
11707
  const { chainId } = await this.provider.getNetwork();
11708
11708
  const domainData = {
11709
11709
  name: SEAPORT_CONTRACT_NAME,
11710
- version: SEAPORT_CONTRACT_VERSION_V1_4$1,
11710
+ version: SEAPORT_CONTRACT_VERSION_V1_4,
11711
11711
  chainId,
11712
11712
  verifyingContract: this.seaportContractAddress,
11713
11713
  };
@@ -11719,7 +11719,7 @@ class Seaport {
11719
11719
  }
11720
11720
  getSeaportLib(order) {
11721
11721
  const seaportAddress = order?.protocol_data?.seaport_address ?? this.seaportContractAddress;
11722
- let seaportVersion = SEAPORT_CONTRACT_VERSION_V1_4$1;
11722
+ let seaportVersion = SEAPORT_CONTRACT_VERSION_V1_4;
11723
11723
  if (order?.protocol_data?.seaport_version === SEAPORT_CONTRACT_VERSION_V1_5) {
11724
11724
  seaportVersion = SEAPORT_CONTRACT_VERSION_V1_5;
11725
11725
  }
@@ -27743,7 +27743,7 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
27743
27743
  function $parcel$export(e, n, v, s) {
27744
27744
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
27745
27745
  }
27746
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.1.10-alpha.3";
27746
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.1.10-alpha.4";
27747
27747
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
27748
27748
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
27749
27749
 
package/dist/orderbook.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import axios from 'axios';
2
2
  import FormData from 'form-data';
3
- import { SEAPORT_CONTRACT_VERSION_V1_4 as SEAPORT_CONTRACT_VERSION_V1_4$1, SEAPORT_CONTRACT_VERSION_V1_5 } from '@opensea/seaport-js/lib/constants';
4
3
  import { providers, BigNumber, constants, utils, Contract } from 'ethers';
5
4
  import dotenv from 'dotenv';
6
5
  import { Seaport as Seaport$1 } from '@opensea/seaport-js';
@@ -529,6 +528,7 @@ var OrderStatus;
529
528
  // There is some bundling issue that is preventing this from working
530
529
  const SEAPORT_CONTRACT_NAME = 'ImmutableSeaport';
531
530
  const SEAPORT_CONTRACT_VERSION_V1_4 = '1.4';
531
+ const SEAPORT_CONTRACT_VERSION_V1_5 = '1.5';
532
532
  const EIP_712_ORDER_TYPE = {
533
533
  OrderComponents: [
534
534
  { name: 'offerer', type: 'address' },
@@ -780,7 +780,7 @@ class Seaport {
780
780
  const { chainId } = await this.provider.getNetwork();
781
781
  const domainData = {
782
782
  name: SEAPORT_CONTRACT_NAME,
783
- version: SEAPORT_CONTRACT_VERSION_V1_4$1,
783
+ version: SEAPORT_CONTRACT_VERSION_V1_4,
784
784
  chainId,
785
785
  verifyingContract: this.seaportContractAddress,
786
786
  };
@@ -792,7 +792,7 @@ class Seaport {
792
792
  }
793
793
  getSeaportLib(order) {
794
794
  const seaportAddress = order?.protocol_data?.seaport_address ?? this.seaportContractAddress;
795
- let seaportVersion = SEAPORT_CONTRACT_VERSION_V1_4$1;
795
+ let seaportVersion = SEAPORT_CONTRACT_VERSION_V1_4;
796
796
  if (order?.protocol_data?.seaport_version === SEAPORT_CONTRACT_VERSION_V1_5) {
797
797
  seaportVersion = SEAPORT_CONTRACT_VERSION_V1_5;
798
798
  }
package/dist/passport.js CHANGED
@@ -21,7 +21,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
21
21
  chainID,
22
22
  coreContractAddress,
23
23
  registrationContractAddress,
24
- sdkVersion: 'ts-immutable-sdk-0.1.10-alpha.3',
24
+ sdkVersion: 'ts-immutable-sdk-0.1.10-alpha.4',
25
25
  });
26
26
  /**
27
27
  * 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.1.10-alpha.3",
4
+ "version": "0.1.10-alpha.4",
5
5
  "author": "Immutable",
6
6
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
7
7
  "dependencies": {