@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.
- package/dist/blockchain_data.js +1 -1
- package/dist/browser/checkout/sdk.js +2 -2
- package/dist/browser/checkout/widgets.js +1 -1
- package/dist/checkout.js +17 -14
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +45 -45
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +12538 -12529
- package/dist/index.d.ts +10671 -10659
- package/dist/index.js +12578 -12570
- package/dist/orderbook.d.ts +6 -1
- package/dist/orderbook.js +8 -5
- package/dist/passport.js +2 -2
- package/package.json +1 -1
package/dist/orderbook.d.ts
CHANGED
|
@@ -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}
|
|
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: '
|
|
1283
|
-
zoneContractAddress: '
|
|
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}
|
|
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.
|
|
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.
|
|
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