@ercworldio/blockchain-shared 1.0.5-dev.8-PLAT300.4 → 1.0.5-dev.8-PLAT300.6

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.
@@ -151,7 +151,7 @@ class WithdrawalManager extends TransactionsErrors_1.default {
151
151
  else if (blockchain === "evm") {
152
152
  // Build evm batch withdraw payload
153
153
  const payloads = queue.map(j => ({
154
- amount_in_tokens: BigInt(0),
154
+ amount_in_tokens: BigInt(1),
155
155
  requestId: j.request_id,
156
156
  token: j.token,
157
157
  receiver: j.receiver
@@ -160,7 +160,7 @@ class WithdrawalManager extends TransactionsErrors_1.default {
160
160
  // amount_in_tokens = 1 (minimum unit) to avoid triggering balance checks in the contract
161
161
  if (payloads.length === 0 && (extra_config === null || extra_config === void 0 ? void 0 : extra_config.token)) {
162
162
  payloads.push({
163
- amount_in_tokens: BigInt(0),
163
+ amount_in_tokens: BigInt(1),
164
164
  requestId: 0,
165
165
  token: extra_config.token,
166
166
  receiver: funds_manager.address
@@ -1 +1 @@
1
- {"version":3,"file":"QnNotificationsApi.d.ts","sourceRoot":"","sources":["../../../src/services/quicknode-notifications/QnNotificationsApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAyB,EAAE,kBAAkB,EAAa,MAAM,8BAA8B,CAAC;AAE/F,cAAM,kBAAmB,SAAQ,UAAU;IACvC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAqB;IAC5C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAgD;IAChE,OAAO,CAAC,YAAY,CAAmB;IACvC,OAAO,CAAC,GAAG,CAA6D;IAExE,OAAO;IAYP,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,O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AAW,EAAE,MAAM,EACnB,iBAAiB,EAAE,MAAM,EAAE,GAC5B,OAAO,CAAC,4BAA4B,CAAC;IAY3B,gBAAgB,IAAI,OAAO,CAAC,0BAA0B,CAAC;IAIvD,wBAAwB,CACjC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EAAE,GACxB,OAAO,CAAC,IAAI,CAAC;IAQH,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAIhD,IAAI;CAsCrB;AAED,eAAe,kBAAkB,CAAC"}
@@ -52,10 +52,9 @@ class QnNotificationsApi extends errors_1.default {
52
52
  super();
53
53
  this.base_url = "https://api.quicknode.com/webhooks/rest/v1";
54
54
  this.rlc = { maxConcurrent: 1, minDelayMs: 1000 };
55
- let key = config.config.quicknodeEndpointApikey;
56
- this.api_key = key ? key : "";
57
- if (!this.api_key || this.api_key.length === 0)
58
- throw new Error(this.RequireParameter(`quicknode api key`));
55
+ this.api_key = config.config.quicknodeApiKey;
56
+ if (!this.api_key)
57
+ throw new Error(`quicknode api key is required`);
59
58
  if (rlc) {
60
59
  this.rlc = rlc;
61
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ercworldio/blockchain-shared",
3
- "version": "1.0.5-dev.8-PLAT300.4",
3
+ "version": "1.0.5-dev.8-PLAT300.6",
4
4
  "description": "Shared library for blockchain projects",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",