emblem-vault-sdk 1.11.1 → 1.12.0
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 +6 -2
- package/dist/index.js +1 -1
- package/dist/utils.js +5 -1
- package/docs/bundle.js +6 -2
- package/package.json +1 -1
- package/src/utils.ts +7 -2
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.
|
|
711424
|
+
const SDK_VERSION = '1.12.0';
|
|
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 == "
|
|
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(' ');
|
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.
|
|
38
|
+
const SDK_VERSION = '1.12.0';
|
|
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 == "
|
|
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(' ');
|
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.
|
|
711424
|
+
const SDK_VERSION = '1.12.0';
|
|
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 == "
|
|
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(' ');
|
package/package.json
CHANGED
package/src/utils.ts
CHANGED
|
@@ -241,6 +241,8 @@ export function generateTemplate(record: any) {
|
|
|
241
241
|
return true
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
+
|
|
245
|
+
|
|
244
246
|
if ((!data || data.length == 0) ) {
|
|
245
247
|
return false
|
|
246
248
|
}
|
|
@@ -249,8 +251,11 @@ export function generateTemplate(record: any) {
|
|
|
249
251
|
let firstAsset = data[0]
|
|
250
252
|
let assetName = firstAsset?.name ? firstAsset.name : ""
|
|
251
253
|
let message = null
|
|
252
|
-
|
|
253
|
-
|
|
254
|
+
if (recordName == "Filthy Fiat") {
|
|
255
|
+
data = _this.filterNativeBalances({balances: data}, _this)
|
|
256
|
+
allowed = data[0].project == recordName
|
|
257
|
+
}
|
|
258
|
+
else if (recordName == "Cursed Ordinal") {
|
|
254
259
|
if (data && data.length > 0) {
|
|
255
260
|
let allowedCoin = firstAsset.content_type != "application/json" && firstAsset.coin == "cursedordinalsbtc"
|
|
256
261
|
let pieces = assetName.split(' ')
|