emblem-vault-sdk 1.7.14 → 1.8.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 CHANGED
@@ -709329,7 +709329,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
709329
709329
  Object.defineProperty(exports, "__esModule", { value: true });
709330
709330
  const bignumber_1 = require("@ethersproject/bignumber");
709331
709331
  const utils_1 = require("./utils");
709332
- const SDK_VERSION = '1.7.14';
709332
+ const SDK_VERSION = '1.8.0';
709333
709333
  class EmblemVaultSDK {
709334
709334
  constructor(apiKey, baseUrl) {
709335
709335
  this.apiKey = apiKey;
@@ -709926,6 +709926,9 @@ function generateTemplate(record) {
709926
709926
  allowed = _this.nativeAssets.includes(data[0].coin);
709927
709927
  }
709928
709928
  }
709929
+ else if (recordName == "Bitcoin DeGods") {
709930
+ allowed = data && data.length > 0 && data[0].coin == "ordinalsbtc" && data[0].balance == 1 && data[0].project == "DeGods";
709931
+ }
709929
709932
  else if (_this.vaultCollectionType && _this.vaultCollectionType == "protocol") {
709930
709933
  allowed = data && data.length > 0 && data[0].coin.toLowerCase() == _this.collectionChain.toLowerCase() && data[0].project && data[0].project == recordName;
709931
709934
  }
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  const bignumber_1 = require("@ethersproject/bignumber");
36
36
  const utils_1 = require("./utils");
37
- const SDK_VERSION = '1.7.14';
37
+ const SDK_VERSION = '1.8.0';
38
38
  class EmblemVaultSDK {
39
39
  constructor(apiKey, baseUrl) {
40
40
  this.apiKey = apiKey;
package/dist/utils.js CHANGED
@@ -257,6 +257,9 @@ function generateTemplate(record) {
257
257
  allowed = _this.nativeAssets.includes(data[0].coin);
258
258
  }
259
259
  }
260
+ else if (recordName == "Bitcoin DeGods") {
261
+ allowed = data && data.length > 0 && data[0].coin == "ordinalsbtc" && data[0].balance == 1 && data[0].project == "DeGods";
262
+ }
260
263
  else if (_this.vaultCollectionType && _this.vaultCollectionType == "protocol") {
261
264
  allowed = data && data.length > 0 && data[0].coin.toLowerCase() == _this.collectionChain.toLowerCase() && data[0].project && data[0].project == recordName;
262
265
  }
package/docs/bels.html CHANGED
@@ -14,7 +14,7 @@
14
14
  </head>
15
15
  <body>
16
16
  <h1>Embels Emblem Steps</h1>
17
- <script src="./bundle.js"></script>
17
+ <script src="./-bundle.js"></script>
18
18
  <script>
19
19
  const sdk = new EmblemVaultSDK('demo'); // Instantiate SDK
20
20
 
@@ -77,4 +77,4 @@
77
77
  </script>
78
78
  <pre id="log"></pre>
79
79
  </body>
80
- </html>
80
+ </html>
package/docs/bundle.js CHANGED
@@ -709329,7 +709329,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
709329
709329
  Object.defineProperty(exports, "__esModule", { value: true });
709330
709330
  const bignumber_1 = require("@ethersproject/bignumber");
709331
709331
  const utils_1 = require("./utils");
709332
- const SDK_VERSION = '1.7.14';
709332
+ const SDK_VERSION = '1.8.0';
709333
709333
  class EmblemVaultSDK {
709334
709334
  constructor(apiKey, baseUrl) {
709335
709335
  this.apiKey = apiKey;
@@ -709926,6 +709926,9 @@ function generateTemplate(record) {
709926
709926
  allowed = _this.nativeAssets.includes(data[0].coin);
709927
709927
  }
709928
709928
  }
709929
+ else if (recordName == "Bitcoin DeGods") {
709930
+ allowed = data && data.length > 0 && data[0].coin == "ordinalsbtc" && data[0].balance == 1 && data[0].project == "DeGods";
709931
+ }
709929
709932
  else if (_this.vaultCollectionType && _this.vaultCollectionType == "protocol") {
709930
709933
  allowed = data && data.length > 0 && data[0].coin.toLowerCase() == _this.collectionChain.toLowerCase() && data[0].project && data[0].project == recordName;
709931
709934
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emblem-vault-sdk",
3
- "version": "1.7.14",
3
+ "version": "1.8.0",
4
4
  "description": "Emblem Vault Software Development Kit",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/utils.ts CHANGED
@@ -228,6 +228,8 @@ export function generateTemplate(record: any) {
228
228
  if (allowed && data && data.length > 0 && data[0].coin) {
229
229
  allowed = _this.nativeAssets.includes(data[0].coin)
230
230
  }
231
+ } else if (recordName == "Bitcoin DeGods"){
232
+ allowed = data && data.length > 0 && data[0].coin == "ordinalsbtc" && data[0].balance == 1 && data[0].project == "DeGods"
231
233
  } else if (_this.vaultCollectionType && _this.vaultCollectionType == "protocol") {
232
234
  allowed = data && data.length > 0 && data[0].coin.toLowerCase() == _this.collectionChain.toLowerCase() && data[0].project && data[0].project == recordName
233
235
  } else if (_this.vaultCollectionType && _this.vaultCollectionType == "collection" ) {