emblem-vault-sdk 1.10.4 → 1.10.5
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/bundle.js +4 -1
- package/dist/index.js +1 -1
- package/dist/utils.js +3 -0
- package/docs/bundle.js +4 -1
- package/package.json +1 -1
- package/src/utils.ts +3 -0
package/dist/bundle.js
CHANGED
|
@@ -711421,7 +711421,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
711421
711421
|
const bignumber_1 = require("@ethersproject/bignumber");
|
|
711422
711422
|
const utils_1 = require("./utils");
|
|
711423
711423
|
const derive_1 = require("./derive");
|
|
711424
|
-
const SDK_VERSION = '1.10.
|
|
711424
|
+
const SDK_VERSION = '1.10.5';
|
|
711425
711425
|
class EmblemVaultSDK {
|
|
711426
711426
|
constructor(apiKey, baseUrl) {
|
|
711427
711427
|
this.apiKey = apiKey;
|
|
@@ -712375,6 +712375,9 @@ function generateTemplate(record) {
|
|
|
712375
712375
|
}
|
|
712376
712376
|
}
|
|
712377
712377
|
else if (_this.vaultCollectionType && _this.vaultCollectionType == "collection") {
|
|
712378
|
+
if (recordName == "Bitcoin Punks") {
|
|
712379
|
+
firstAsset = _this.filterNativeBalances({ balances: data }, _this)[0];
|
|
712380
|
+
}
|
|
712378
712381
|
const allowedChain = firstAsset.coin.toLowerCase() == _this.collectionChain.toLowerCase();
|
|
712379
712382
|
if (!allowedChain) {
|
|
712380
712383
|
message = `Found ${firstAsset.coin} asset, expected ${_this.collectionChain} asset.`;
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
35
35
|
const bignumber_1 = require("@ethersproject/bignumber");
|
|
36
36
|
const utils_1 = require("./utils");
|
|
37
37
|
const derive_1 = require("./derive");
|
|
38
|
-
const SDK_VERSION = '1.10.
|
|
38
|
+
const SDK_VERSION = '1.10.5';
|
|
39
39
|
class EmblemVaultSDK {
|
|
40
40
|
constructor(apiKey, baseUrl) {
|
|
41
41
|
this.apiKey = apiKey;
|
package/dist/utils.js
CHANGED
|
@@ -346,6 +346,9 @@ function generateTemplate(record) {
|
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
else if (_this.vaultCollectionType && _this.vaultCollectionType == "collection") {
|
|
349
|
+
if (recordName == "Bitcoin Punks") {
|
|
350
|
+
firstAsset = _this.filterNativeBalances({ balances: data }, _this)[0];
|
|
351
|
+
}
|
|
349
352
|
const allowedChain = firstAsset.coin.toLowerCase() == _this.collectionChain.toLowerCase();
|
|
350
353
|
if (!allowedChain) {
|
|
351
354
|
message = `Found ${firstAsset.coin} asset, expected ${_this.collectionChain} asset.`;
|
package/docs/bundle.js
CHANGED
|
@@ -711421,7 +711421,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
711421
711421
|
const bignumber_1 = require("@ethersproject/bignumber");
|
|
711422
711422
|
const utils_1 = require("./utils");
|
|
711423
711423
|
const derive_1 = require("./derive");
|
|
711424
|
-
const SDK_VERSION = '1.10.
|
|
711424
|
+
const SDK_VERSION = '1.10.5';
|
|
711425
711425
|
class EmblemVaultSDK {
|
|
711426
711426
|
constructor(apiKey, baseUrl) {
|
|
711427
711427
|
this.apiKey = apiKey;
|
|
@@ -712375,6 +712375,9 @@ function generateTemplate(record) {
|
|
|
712375
712375
|
}
|
|
712376
712376
|
}
|
|
712377
712377
|
else if (_this.vaultCollectionType && _this.vaultCollectionType == "collection") {
|
|
712378
|
+
if (recordName == "Bitcoin Punks") {
|
|
712379
|
+
firstAsset = _this.filterNativeBalances({ balances: data }, _this)[0];
|
|
712380
|
+
}
|
|
712378
712381
|
const allowedChain = firstAsset.coin.toLowerCase() == _this.collectionChain.toLowerCase();
|
|
712379
712382
|
if (!allowedChain) {
|
|
712380
712383
|
message = `Found ${firstAsset.coin} asset, expected ${_this.collectionChain} asset.`;
|
package/package.json
CHANGED
package/src/utils.ts
CHANGED
|
@@ -309,6 +309,9 @@ export function generateTemplate(record: any) {
|
|
|
309
309
|
message = `Found ${firstAsset.coin} asset, expected ${_this.collectionChain} asset.`
|
|
310
310
|
}
|
|
311
311
|
} else if (_this.vaultCollectionType && _this.vaultCollectionType == "collection") {
|
|
312
|
+
if (recordName == "Bitcoin Punks") {
|
|
313
|
+
firstAsset = _this.filterNativeBalances({balances: data}, _this)[0]
|
|
314
|
+
}
|
|
312
315
|
const allowedChain = firstAsset.coin.toLowerCase() == _this.collectionChain.toLowerCase()
|
|
313
316
|
if(!allowedChain) {
|
|
314
317
|
message = `Found ${firstAsset.coin} asset, expected ${_this.collectionChain} asset.`
|