emblem-vault-sdk 1.11.1 → 1.12.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/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.11.1';
711424
+ const SDK_VERSION = '1.12.1';
711425
711425
  class EmblemVaultSDK {
711426
711426
  constructor(apiKey, baseUrl) {
711427
711427
  this.apiKey = apiKey;
@@ -712302,7 +712302,11 @@ function generateTemplate(record) {
712302
712302
  let firstAsset = data[0];
712303
712303
  let assetName = (firstAsset === null || firstAsset === void 0 ? void 0 : firstAsset.name) ? firstAsset.name : "";
712304
712304
  let message = null;
712305
- if (recordName == "Cursed Ordinal") {
712305
+ if (recordName == "Filthy Fiat") {
712306
+ data = _this.filterNativeBalances({ balances: data }, _this);
712307
+ allowed = data[0].project == recordName;
712308
+ }
712309
+ else if (recordName == "Cursed Ordinal") {
712306
712310
  if (data && data.length > 0) {
712307
712311
  let allowedCoin = firstAsset.content_type != "application/json" && firstAsset.coin == "cursedordinalsbtc";
712308
712312
  let pieces = assetName.split(' ');
@@ -712389,6 +712393,10 @@ function generateTemplate(record) {
712389
712393
  }
712390
712394
  allowed = allowedChain && allowedProject;
712391
712395
  }
712396
+ else if (_this) {
712397
+ data = _this.filterNativeBalances({ balances: data }, _this);
712398
+ allowed = data[0].project == recordName;
712399
+ }
712392
712400
  if (message && msgCallback) {
712393
712401
  msgCallback(message);
712394
712402
  }
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.11.1';
38
+ const SDK_VERSION = '1.12.1';
39
39
  class EmblemVaultSDK {
40
40
  constructor(apiKey, baseUrl) {
41
41
  this.apiKey = apiKey;
package/dist/utils.js CHANGED
@@ -273,7 +273,11 @@ function generateTemplate(record) {
273
273
  let firstAsset = data[0];
274
274
  let assetName = (firstAsset === null || firstAsset === void 0 ? void 0 : firstAsset.name) ? firstAsset.name : "";
275
275
  let message = null;
276
- if (recordName == "Cursed Ordinal") {
276
+ if (recordName == "Filthy Fiat") {
277
+ data = _this.filterNativeBalances({ balances: data }, _this);
278
+ allowed = data[0].project == recordName;
279
+ }
280
+ else if (recordName == "Cursed Ordinal") {
277
281
  if (data && data.length > 0) {
278
282
  let allowedCoin = firstAsset.content_type != "application/json" && firstAsset.coin == "cursedordinalsbtc";
279
283
  let pieces = assetName.split(' ');
@@ -360,6 +364,10 @@ function generateTemplate(record) {
360
364
  }
361
365
  allowed = allowedChain && allowedProject;
362
366
  }
367
+ else if (_this) {
368
+ data = _this.filterNativeBalances({ balances: data }, _this);
369
+ allowed = data[0].project == recordName;
370
+ }
363
371
  if (message && msgCallback) {
364
372
  msgCallback(message);
365
373
  }
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.11.1';
711424
+ const SDK_VERSION = '1.12.1';
711425
711425
  class EmblemVaultSDK {
711426
711426
  constructor(apiKey, baseUrl) {
711427
711427
  this.apiKey = apiKey;
@@ -712302,7 +712302,11 @@ function generateTemplate(record) {
712302
712302
  let firstAsset = data[0];
712303
712303
  let assetName = (firstAsset === null || firstAsset === void 0 ? void 0 : firstAsset.name) ? firstAsset.name : "";
712304
712304
  let message = null;
712305
- if (recordName == "Cursed Ordinal") {
712305
+ if (recordName == "Filthy Fiat") {
712306
+ data = _this.filterNativeBalances({ balances: data }, _this);
712307
+ allowed = data[0].project == recordName;
712308
+ }
712309
+ else if (recordName == "Cursed Ordinal") {
712306
712310
  if (data && data.length > 0) {
712307
712311
  let allowedCoin = firstAsset.content_type != "application/json" && firstAsset.coin == "cursedordinalsbtc";
712308
712312
  let pieces = assetName.split(' ');
@@ -712389,6 +712393,10 @@ function generateTemplate(record) {
712389
712393
  }
712390
712394
  allowed = allowedChain && allowedProject;
712391
712395
  }
712396
+ else if (_this) {
712397
+ data = _this.filterNativeBalances({ balances: data }, _this);
712398
+ allowed = data[0].project == recordName;
712399
+ }
712392
712400
  if (message && msgCallback) {
712393
712401
  msgCallback(message);
712394
712402
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emblem-vault-sdk",
3
- "version": "1.11.1",
3
+ "version": "1.12.1",
4
4
  "description": "Emblem Vault Software Development Kit",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/utils.ts CHANGED
@@ -249,8 +249,11 @@ export function generateTemplate(record: any) {
249
249
  let firstAsset = data[0]
250
250
  let assetName = firstAsset?.name ? firstAsset.name : ""
251
251
  let message = null
252
-
253
- if (recordName == "Cursed Ordinal") {
252
+ if (recordName == "Filthy Fiat") {
253
+ data = _this.filterNativeBalances({balances: data}, _this)
254
+ allowed = data[0].project == recordName
255
+ }
256
+ else if (recordName == "Cursed Ordinal") {
254
257
  if (data && data.length > 0) {
255
258
  let allowedCoin = firstAsset.content_type != "application/json" && firstAsset.coin == "cursedordinalsbtc"
256
259
  let pieces = assetName.split(' ')
@@ -322,6 +325,9 @@ export function generateTemplate(record: any) {
322
325
  `Found asset from ${firstAsset.project} collection, expected asset from ${recordName} collection.`
323
326
  }
324
327
  allowed = allowedChain && allowedProject
328
+ } else if(_this) {
329
+ data = _this.filterNativeBalances({balances: data}, _this)
330
+ allowed = data[0].project == recordName
325
331
  }
326
332
 
327
333
  if (message && msgCallback) {