@imtbl/sdk 0.12.0-alpha → 0.13.0-alpha.1

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/orderbook.js CHANGED
@@ -514,16 +514,6 @@ class OrderBookClient {
514
514
  }
515
515
  }
516
516
 
517
- /* istanbul ignore file */
518
- /* tslint:disable */
519
- /* eslint-disable */
520
- var CreateOrderProtocolData;
521
- (function (CreateOrderProtocolData) {
522
- (function (order_type) {
523
- order_type["FULL_RESTRICTED"] = "FULL_RESTRICTED";
524
- })(CreateOrderProtocolData.order_type || (CreateOrderProtocolData.order_type = {}));
525
- })(CreateOrderProtocolData || (CreateOrderProtocolData = {}));
526
-
527
517
  /* istanbul ignore file */
528
518
  /* tslint:disable */
529
519
  /* eslint-disable */
@@ -553,6 +543,16 @@ var OrderStatus;
553
543
  OrderStatus["EXPIRED"] = "EXPIRED";
554
544
  })(OrderStatus || (OrderStatus = {}));
555
545
 
546
+ /* istanbul ignore file */
547
+ /* tslint:disable */
548
+ /* eslint-disable */
549
+ var ProtocolData;
550
+ (function (ProtocolData) {
551
+ (function (order_type) {
552
+ order_type["FULL_RESTRICTED"] = "FULL_RESTRICTED";
553
+ })(ProtocolData.order_type || (ProtocolData.order_type = {}));
554
+ })(ProtocolData || (ProtocolData = {}));
555
+
556
556
  var TransactionPurpose;
557
557
  (function (TransactionPurpose) {
558
558
  TransactionPurpose["APPROVAL"] = "APPROVAL";
@@ -918,7 +918,7 @@ class ImmutableApiClient {
918
918
  fees: makerFee ? [makerFee] : [],
919
919
  end_time: new Date(parseInt(`${orderComponents.endTime.toString()}000`, 10)).toISOString(),
920
920
  protocol_data: {
921
- order_type: CreateOrderProtocolData.order_type.FULL_RESTRICTED,
921
+ order_type: ProtocolData.order_type.FULL_RESTRICTED,
922
922
  zone_address: orderComponents.zone,
923
923
  seaport_address: this.seaportAddress,
924
924
  seaport_version: SEAPORT_CONTRACT_VERSION_V1_5,
package/dist/passport.js CHANGED
@@ -1457,7 +1457,7 @@ class MultiRollupApiClients {
1457
1457
  }
1458
1458
 
1459
1459
  // eslint-disable-next-line @typescript-eslint/naming-convention
1460
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.12.0-alpha' };
1460
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.13.0-alpha.1' };
1461
1461
  const createConfig = ({ basePath, headers, }) => {
1462
1462
  if (!basePath.trim()) {
1463
1463
  throw Error('basePath can not be empty');
@@ -1513,7 +1513,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
1513
1513
  chainID,
1514
1514
  coreContractAddress,
1515
1515
  registrationContractAddress,
1516
- sdkVersion: 'ts-immutable-sdk-0.12.0-alpha',
1516
+ sdkVersion: 'ts-immutable-sdk-0.13.0-alpha.1',
1517
1517
  });
1518
1518
  /**
1519
1519
  * Sets `sdkVersion` at the time of build
@@ -7393,7 +7393,6 @@ class ZkEvmProvider {
7393
7393
  config;
7394
7394
  confirmationScreen;
7395
7395
  magicAdapter;
7396
- transactionAPI;
7397
7396
  multiRollupApiClients;
7398
7397
  jsonRpcProvider; // Used for read
7399
7398
  eventEmitter;
@@ -7407,9 +7406,6 @@ class ZkEvmProvider {
7407
7406
  this.magicAdapter = magicAdapter;
7408
7407
  this.config = config;
7409
7408
  this.confirmationScreen = confirmationScreen;
7410
- this.transactionAPI = new TransactionsApi(new Configuration({
7411
- basePath: this.config.imxPublicApiDomain,
7412
- }));
7413
7409
  this.jsonRpcProvider = new JsonRpcProvider(this.config.zkEvmRpcUrl);
7414
7410
  this.multiRollupApiClients = multiRollupApiClients;
7415
7411
  this.eventEmitter = new TypedEventEmitter();
@@ -7454,12 +7450,7 @@ class ZkEvmProvider {
7454
7450
  accessToken: this.user.accessToken,
7455
7451
  confirmationScreen: this.confirmationScreen,
7456
7452
  imxEtherAddress: this.user.zkEvm.ethAddress,
7457
- config: new PassportConfiguration({
7458
- baseConfig: {},
7459
- clientId: 'client123',
7460
- logoutRedirectUri: 'http://localhost:3000/logout',
7461
- redirectUri: 'http://localhost:3000/redirect',
7462
- }),
7453
+ config: this.config,
7463
7454
  });
7464
7455
  this.eventEmitter.emit(ProviderEvent.ACCOUNTS_CHANGED, [this.user.zkEvm.ethAddress]);
7465
7456
  return [this.user.zkEvm.ethAddress];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "0.12.0-alpha",
4
+ "version": "0.13.0-alpha.1",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
@@ -33,6 +33,7 @@
33
33
  "@imtbl/config": "0.0.0",
34
34
  "@imtbl/cryptofiat": "0.0.0",
35
35
  "@imtbl/erc20": "0.0.0",
36
+ "@imtbl/erc721-hybrid-permissioned-mintable": "0.0.0",
36
37
  "@imtbl/erc721-permissioned-mintable": "0.0.0",
37
38
  "@imtbl/generated-clients": "0.0.0",
38
39
  "@imtbl/guardian": "0.0.0",
@@ -102,6 +103,10 @@
102
103
  "types": "./dist/erc20.d.ts",
103
104
  "import": "./dist/erc20.js"
104
105
  },
106
+ "./erc721_hybrid_permissioned_mintable": {
107
+ "types": "./dist/erc721_hybrid_permissioned_mintable.d.ts",
108
+ "import": "./dist/erc721_hybrid_permissioned_mintable.js"
109
+ },
105
110
  "./erc721_permissioned_mintable": {
106
111
  "types": "./dist/erc721_permissioned_mintable.d.ts",
107
112
  "import": "./dist/erc721_permissioned_mintable.js"