@ercworldio/blockchain-shared 1.0.1-dev.18 → 1.0.1-dev.19

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.
@@ -13,7 +13,8 @@
13
13
  "funding_wallet": "0xd81C736189d255379a9510a4E11A27d559Cc5695",
14
14
  "treasury_receiver": "0x7F625Ba70fA13694218cD68b14F99EEF3518eC7C",
15
15
  "overflow_treasury_receiver": "0x7F625Ba70fA13694218cD68b14F99EEF3518eC7C",
16
- "overflow_threshold_decimal": 100000
16
+ "overflow_threshold_decimal": 100000,
17
+ "min_funding_wallet_balance_usd": 5
17
18
  },
18
19
  "custodialAlchemyWebhooks": [
19
20
  {
@@ -93,7 +94,8 @@
93
94
  "funding_wallet": "0xd81C736189d255379a9510a4E11A27d559Cc5695",
94
95
  "treasury_receiver": "0x7F625Ba70fA13694218cD68b14F99EEF3518eC7C",
95
96
  "overflow_treasury_receiver": "0x7F625Ba70fA13694218cD68b14F99EEF3518eC7C",
96
- "overflow_threshold_decimal": 100000
97
+ "overflow_threshold_decimal": 100000,
98
+ "min_funding_wallet_balance_usd": 5
97
99
  },
98
100
  "custodialAlchemyWebhooks": [
99
101
  {
@@ -173,7 +175,8 @@
173
175
  "funding_wallet": "EvEmp35XMdWcsG3sULndr2Vb5yiLcA9JCfSBw5A6bXk6",
174
176
  "treasury_receiver": "67e3Robajph3KSAq3VDuYL21xifkCmD5y28DPwMecu7S",
175
177
  "overflow_treasury_receiver": "67e3Robajph3KSAq3VDuYL21xifkCmD5y28DPwMecu7S",
176
- "overflow_threshold_decimal": 100000
178
+ "overflow_threshold_decimal": 100000,
179
+ "min_funding_wallet_balance_usd": 5
177
180
  },
178
181
  "custodialAlchemyWebhooks": [
179
182
  {
@@ -253,7 +256,8 @@
253
256
  "funding_wallet": "0xd81C736189d255379a9510a4E11A27d559Cc5695",
254
257
  "treasury_receiver": "0xE75526AaD30364d198b8553C716Aa9DDc2f8BD26",
255
258
  "overflow_treasury_receiver": "0xE75526AaD30364d198b8553C716Aa9DDc2f8BD26",
256
- "overflow_threshold_decimal": 100000
259
+ "overflow_threshold_decimal": 100000,
260
+ "min_funding_wallet_balance_usd": 5
257
261
  },
258
262
  "custodialAlchemyWebhooks": [
259
263
  {
@@ -333,7 +337,8 @@
333
337
  "funding_wallet": "0xd81C736189d255379a9510a4E11A27d559Cc5695",
334
338
  "treasury_receiver": "0xD7205fD63Fa5def834DD3556c149FF7911478391",
335
339
  "overflow_treasury_receiver": "0xD7205fD63Fa5def834DD3556c149FF7911478391",
336
- "overflow_threshold_decimal": 100000
340
+ "overflow_threshold_decimal": 100000,
341
+ "min_funding_wallet_balance_usd": 5
337
342
  },
338
343
  "custodialAlchemyWebhooks": [
339
344
  {
@@ -402,7 +407,8 @@
402
407
  "funding_wallet": "0xd81C736189d255379a9510a4E11A27d559Cc5695",
403
408
  "treasury_receiver": "0xedb9e987Da3806205D2f1e246Eb8c538A872783E",
404
409
  "overflow_treasury_receiver": "0xedb9e987Da3806205D2f1e246Eb8c538A872783E",
405
- "overflow_threshold_decimal": 100000
410
+ "overflow_threshold_decimal": 100000,
411
+ "min_funding_wallet_balance_usd": 5
406
412
  },
407
413
  "custodialAlchemyWebhooks": [
408
414
  {
@@ -483,7 +489,8 @@
483
489
  "funding_wallet": "TTxo5LeNkq5g9sywaGdXjttKRvoum8xSGp",
484
490
  "treasury_receiver": "TTxo5LeNkq5g9sywaGdXjttKRvoum8xSGp",
485
491
  "overflow_treasury_receiver": "TTxo5LeNkq5g9sywaGdXjttKRvoum8xSGp",
486
- "overflow_threshold_decimal": 100000
492
+ "overflow_threshold_decimal": 100000,
493
+ "min_funding_wallet_balance_usd": 5
487
494
  },
488
495
  "rpcMetadata": {
489
496
  "rpcBaseUrl": "https://rpc.ankr.com/premium-http/tron",
@@ -13,7 +13,8 @@
13
13
  "funding_wallet": "0x9Ea8Fb697981Fe83599E3F90b0Bd77E3a3253fE7",
14
14
  "treasury_receiver": "0x5df6F2A9016d6cA062e60da3b056736B2015B6f0",
15
15
  "overflow_treasury_receiver": "0x5df6F2A9016d6cA062e60da3b056736B2015B6f0",
16
- "overflow_threshold_decimal": 100000
16
+ "overflow_threshold_decimal": 100000,
17
+ "min_funding_wallet_balance_usd": 5
17
18
  },
18
19
  "custodialAlchemyWebhooks": [
19
20
  {
@@ -104,7 +105,8 @@
104
105
  "funding_wallet": "0x9Ea8Fb697981Fe83599E3F90b0Bd77E3a3253fE7",
105
106
  "treasury_receiver": "0x184D508C3934e36Df2531175460DCca51F238E4e",
106
107
  "overflow_treasury_receiver": "0x184D508C3934e36Df2531175460DCca51F238E4e",
107
- "overflow_threshold_decimal": 100000
108
+ "overflow_threshold_decimal": 100000,
109
+ "min_funding_wallet_balance_usd": 5
108
110
  },
109
111
  "custodialAlchemyWebhooks": [
110
112
  {
@@ -184,7 +186,8 @@
184
186
  "funding_wallet": "7z5QwV7mg93PU8tBsbdvXscG9bf5VUP2QYHvS2czNisG",
185
187
  "treasury_receiver": "Cr1fJwtExaPdYG8huC5axiW2m2knSoTumLzYBj9rMjCd",
186
188
  "overflow_treasury_receiver": "Cr1fJwtExaPdYG8huC5axiW2m2knSoTumLzYBj9rMjCd",
187
- "overflow_threshold_decimal": 100000
189
+ "overflow_threshold_decimal": 100000,
190
+ "min_funding_wallet_balance_usd": 5
188
191
  },
189
192
  "custodialAlchemyWebhooks": [
190
193
  {
@@ -264,7 +267,8 @@
264
267
  "funding_wallet": "0x9Ea8Fb697981Fe83599E3F90b0Bd77E3a3253fE7",
265
268
  "treasury_receiver": "0x1821236AaC799c31F12C7359017083620a49a52E",
266
269
  "overflow_treasury_receiver": "0x1821236AaC799c31F12C7359017083620a49a52E",
267
- "overflow_threshold_decimal": 100000
270
+ "overflow_threshold_decimal": 100000,
271
+ "min_funding_wallet_balance_usd": 5
268
272
  },
269
273
  "custodialAlchemyWebhooks": [
270
274
  {
@@ -344,7 +348,8 @@
344
348
  "funding_wallet": "0x9Ea8Fb697981Fe83599E3F90b0Bd77E3a3253fE7",
345
349
  "treasury_receiver": "0x5df6F2A9016d6cA062e60da3b056736B2015B6f0",
346
350
  "overflow_treasury_receiver": "0x5df6F2A9016d6cA062e60da3b056736B2015B6f0",
347
- "overflow_threshold_decimal": 100000
351
+ "overflow_threshold_decimal": 100000,
352
+ "min_funding_wallet_balance_usd": 5
348
353
  },
349
354
  "custodialAlchemyWebhooks": [
350
355
  {
@@ -425,7 +430,8 @@
425
430
  "funding_wallet": "TBLeFCWoBrwgbvj33F41t8FErhkgbm3276",
426
431
  "treasury_receiver": "TBLeFCWoBrwgbvj33F41t8FErhkgbm3276",
427
432
  "overflow_treasury_receiver": "TBLeFCWoBrwgbvj33F41t8FErhkgbm3276",
428
- "overflow_threshold_decimal": 100000
433
+ "overflow_threshold_decimal": 100000,
434
+ "min_funding_wallet_balance_usd": 5
429
435
  },
430
436
  "rpcMetadata": {
431
437
  "rpcBaseUrl": "https://rpc.ankr.com/premium-http/tron",
@@ -13,7 +13,8 @@
13
13
  "funding_wallet": "0x93c7Db61068415Bf0af97849F15eec295a1670dd",
14
14
  "treasury_receiver": "0x8A729F30A9860ad6148D35A4Df49314f571bE84d",
15
15
  "overflow_treasury_receiver": "0x8A729F30A9860ad6148D35A4Df49314f571bE84d",
16
- "overflow_threshold_decimal": 100000
16
+ "overflow_threshold_decimal": 100000,
17
+ "min_funding_wallet_balance_usd": 5
17
18
  },
18
19
  "custodialAlchemyWebhooks": [
19
20
  {
@@ -93,7 +94,8 @@
93
94
  "funding_wallet": "0x93c7Db61068415Bf0af97849F15eec295a1670dd",
94
95
  "treasury_receiver": "0x8A729F30A9860ad6148D35A4Df49314f571bE84d",
95
96
  "overflow_treasury_receiver": "0x8A729F30A9860ad6148D35A4Df49314f571bE84d",
96
- "overflow_threshold_decimal": 100000
97
+ "overflow_threshold_decimal": 100000,
98
+ "min_funding_wallet_balance_usd": 5
97
99
  },
98
100
  "custodialAlchemyWebhooks": [
99
101
  {
@@ -173,7 +175,8 @@
173
175
  "funding_wallet": "79ojMgdb9dLuGnFRjaNzkYmd4NFxV5ukRTpYSrTxmTFN",
174
176
  "treasury_receiver": "Fi2BknBbXXcjHst2PwQQVZwYx8NHx6k8NsU5cLXhTwmT",
175
177
  "overflow_treasury_receiver": "Fi2BknBbXXcjHst2PwQQVZwYx8NHx6k8NsU5cLXhTwmT",
176
- "overflow_threshold_decimal": 100000
178
+ "overflow_threshold_decimal": 100000,
179
+ "min_funding_wallet_balance_usd": 5
177
180
  },
178
181
  "custodialAlchemyWebhooks": [
179
182
  {
@@ -253,7 +256,8 @@
253
256
  "funding_wallet": "0x93c7Db61068415Bf0af97849F15eec295a1670dd",
254
257
  "treasury_receiver": "0x45B284aB71F18866438E33f1f68e7561aa8D5806",
255
258
  "overflow_treasury_receiver": "0x45B284aB71F18866438E33f1f68e7561aa8D5806",
256
- "overflow_threshold_decimal": 100000
259
+ "overflow_threshold_decimal": 100000,
260
+ "min_funding_wallet_balance_usd": 5
257
261
  },
258
262
  "custodialAlchemyWebhooks": [
259
263
  {
@@ -333,7 +337,8 @@
333
337
  "funding_wallet": "0x93c7Db61068415Bf0af97849F15eec295a1670dd",
334
338
  "treasury_receiver": "0x8A729F30A9860ad6148D35A4Df49314f571bE84d",
335
339
  "overflow_treasury_receiver": "0x8A729F30A9860ad6148D35A4Df49314f571bE84d",
336
- "overflow_threshold_decimal": 100000
340
+ "overflow_threshold_decimal": 100000,
341
+ "min_funding_wallet_balance_usd": 5
337
342
  },
338
343
  "custodialAlchemyWebhooks": [
339
344
  {
@@ -402,7 +407,8 @@
402
407
  "funding_wallet": "0x93c7Db61068415Bf0af97849F15eec295a1670dd",
403
408
  "treasury_receiver": "0x8A729F30A9860ad6148D35A4Df49314f571bE84d",
404
409
  "overflow_treasury_receiver": "0x8A729F30A9860ad6148D35A4Df49314f571bE84d",
405
- "overflow_threshold_decimal": 100000
410
+ "overflow_threshold_decimal": 100000,
411
+ "min_funding_wallet_balance_usd": 5
406
412
  },
407
413
  "custodialAlchemyWebhooks": [
408
414
  {
@@ -483,7 +489,8 @@
483
489
  "funding_wallet": "TWA4NYYdVtnb7iZfmyruC5MefsFdw84iZu",
484
490
  "treasury_receiver": "TWA4NYYdVtnb7iZfmyruC5MefsFdw84iZu",
485
491
  "overflow_treasury_receiver": "TWA4NYYdVtnb7iZfmyruC5MefsFdw84iZu",
486
- "overflow_threshold_decimal": 100000
492
+ "overflow_threshold_decimal": 100000,
493
+ "min_funding_wallet_balance_usd": 5
487
494
  },
488
495
  "rpcMetadata": {
489
496
  "rpcBaseUrl": "https://rpc.ankr.com/premium-http/tron",
@@ -13,7 +13,8 @@
13
13
  "funding_wallet": "0x5BCAbaCAC48055E02eDc1A640E9208C867AbC4Fa",
14
14
  "treasury_receiver": "0xD7205fD63Fa5def834DD3556c149FF7911478391",
15
15
  "overflow_treasury_receiver": "0xD7205fD63Fa5def834DD3556c149FF7911478391",
16
- "overflow_threshold_decimal": 100000
16
+ "overflow_threshold_decimal": 100000,
17
+ "min_funding_wallet_balance_usd": 5
17
18
  },
18
19
  "custodialAlchemyWebhooks": [
19
20
  {
@@ -104,7 +105,8 @@
104
105
  "funding_wallet": "0x5BCAbaCAC48055E02eDc1A640E9208C867AbC4Fa",
105
106
  "treasury_receiver": "0xedb9e987Da3806205D2f1e246Eb8c538A872783E",
106
107
  "overflow_treasury_receiver": "0xedb9e987Da3806205D2f1e246Eb8c538A872783E",
107
- "overflow_threshold_decimal": 100000
108
+ "overflow_threshold_decimal": 100000,
109
+ "min_funding_wallet_balance_usd": 5
108
110
  },
109
111
  "custodialAlchemyWebhooks": [
110
112
  {
@@ -184,7 +186,8 @@
184
186
  "funding_wallet": "sB5d7n9EK7QNmFqB9VmLdi8FMf2yJxbovfuz9mToUqD",
185
187
  "treasury_receiver": "yCwEYHrHy2Ri81vxkYbwmuPcLubCZe82mWRUhDciqx6",
186
188
  "overflow_treasury_receiver": "yCwEYHrHy2Ri81vxkYbwmuPcLubCZe82mWRUhDciqx6",
187
- "overflow_threshold_decimal": 100000
189
+ "overflow_threshold_decimal": 100000,
190
+ "min_funding_wallet_balance_usd": 5
188
191
  },
189
192
  "custodialAlchemyWebhooks": [
190
193
  {
@@ -264,7 +267,8 @@
264
267
  "funding_wallet": "0x5BCAbaCAC48055E02eDc1A640E9208C867AbC4Fa",
265
268
  "treasury_receiver": "0xc4b25365d597EB6B7Db78429f70b8E325C2456BD",
266
269
  "overflow_treasury_receiver": "0xc4b25365d597EB6B7Db78429f70b8E325C2456BD",
267
- "overflow_threshold_decimal": 100000
270
+ "overflow_threshold_decimal": 100000,
271
+ "min_funding_wallet_balance_usd": 5
268
272
  },
269
273
  "custodialAlchemyWebhooks": [
270
274
  {
@@ -344,7 +348,8 @@
344
348
  "funding_wallet": "0x5BCAbaCAC48055E02eDc1A640E9208C867AbC4Fa",
345
349
  "treasury_receiver": "0xA228E95a253B42fFAc8C26Df2ca1EdD0C2D4A191",
346
350
  "overflow_treasury_receiver": "0xA228E95a253B42fFAc8C26Df2ca1EdD0C2D4A191",
347
- "overflow_threshold_decimal": 100000
351
+ "overflow_threshold_decimal": 100000,
352
+ "min_funding_wallet_balance_usd": 5
348
353
  },
349
354
  "custodialAlchemyWebhooks": [
350
355
  {
@@ -413,7 +418,8 @@
413
418
  "funding_wallet": "0x5BCAbaCAC48055E02eDc1A640E9208C867AbC4Fa",
414
419
  "treasury_receiver": "0xD7205fD63Fa5def834DD3556c149FF7911478391",
415
420
  "overflow_treasury_receiver": "0xD7205fD63Fa5def834DD3556c149FF7911478391",
416
- "overflow_threshold_decimal": 100000
421
+ "overflow_threshold_decimal": 100000,
422
+ "min_funding_wallet_balance_usd": 5
417
423
  },
418
424
  "custodialAlchemyWebhooks": [
419
425
  {
@@ -494,7 +500,8 @@
494
500
  "funding_wallet": "TUWoLoAJKqWome13wtHZ7m62Apa2rT87Ky",
495
501
  "treasury_receiver": "TUWoLoAJKqWome13wtHZ7m62Apa2rT87Ky",
496
502
  "overflow_treasury_receiver": "TUWoLoAJKqWome13wtHZ7m62Apa2rT87Ky",
497
- "overflow_threshold_decimal": 100000
503
+ "overflow_threshold_decimal": 100000,
504
+ "min_funding_wallet_balance_usd": 5
498
505
  },
499
506
  "rpcMetadata": {
500
507
  "rpcBaseUrl": "https://rpc.ankr.com/premium-http/tron",
@@ -1 +1 @@
1
- {"version":3,"file":"QnWebhookAddressManager.d.ts","sourceRoot":"","sources":["../../../src/services/quicknode-notifications/QnWebhookAddressManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,OAAO,EAAiB,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAyBlE,cAAM,uBAAuB;IACzB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA0B;IACjD,OAAO,CAAC,GAAG,CAAqB;IAChC,OAAO,CAAC,MAAM,CAAU;IACxB,OAAO,CAAC,KAAK,CAAqD;IAElE,OAAO,CAAC,EAAE,CAAgB;IAC1B,OAAO;IAMP,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,aAAa,EAAE,GAAG,CAAC,EAAE,kBAAkB,GAAG,uBAAuB;IAOzG,OAAO,CAAC,wBAAwB;IAKhC,yFAAyF;IACzF,OAAO,CAAC,0BAA0B;IAQlC,OAAO,CAAC,iBAAiB;YAkBX,YAAY;YA+BZ,aAAa;IAQ3B,OAAO,CAAC,WAAW;IAIN,WAAW,CAAC,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAoB1E,cAAc,CAAC,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAmB1F;;;;OAIG;IACU,oBAAoB,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAwBvF;;;;OAIG;IACU,yBAAyB,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAyB5F;;;;OAIG;IACU,qBAAqB,CAAC,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBzH;;;;OAIG;IACU,0BAA0B,CAAC,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;YAsBhH,sBAAsB;CAuBvC;AAED,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"QnWebhookAddressManager.d.ts","sourceRoot":"","sources":["../../../src/services/quicknode-notifications/QnWebhookAddressManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,OAAO,EAAiB,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAyBlE,cAAM,uBAAuB;IACzB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA0B;IACjD,OAAO,CAAC,GAAG,CAAqB;IAChC,OAAO,CAAC,MAAM,CAAU;IACxB,OAAO,CAAC,KAAK,CAAqD;IAElE,OAAO,CAAC,EAAE,CAAgB;IAC1B,OAAO;IAMP,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,aAAa,EAAE,GAAG,CAAC,EAAE,kBAAkB,GAAG,uBAAuB;IAOzG,OAAO,CAAC,wBAAwB;IAKhC,yFAAyF;IACzF,OAAO,CAAC,0BAA0B;IAQlC,OAAO,CAAC,iBAAiB;YAkBX,YAAY;YA+BZ,aAAa;IAQ3B,OAAO,CAAC,WAAW;IAIN,WAAW,CAAC,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAmB1E,cAAc,CAAC,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAkB1F;;;;OAIG;IACU,oBAAoB,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAuBvF;;;;OAIG;IACU,yBAAyB,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAwB5F;;;;OAIG;IACU,qBAAqB,CAAC,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBzH;;;;OAIG;IACU,0BAA0B,CAAC,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;YAqBhH,sBAAsB;CAuBvC;AAED,eAAe,uBAAuB,CAAC"}
@@ -104,8 +104,6 @@ class QnWebhookAddressManager {
104
104
  console.log(`Pushing ${entries.length} addresses: `, entries);
105
105
  console.log(`Pushed ${entries.length} addresses `);
106
106
  for (const entry of entries) {
107
- if (entry.address_set.has(address))
108
- continue;
109
107
  entry.address_set.add(address);
110
108
  try {
111
109
  console.log(`add_address : Adding addresses: `, entry.address_set);
@@ -126,8 +124,6 @@ class QnWebhookAddressManager {
126
124
  console.log(`Ensuring loaded...`);
127
125
  const entries = yield this.ensure_loaded(blockchain);
128
126
  for (const entry of entries) {
129
- if (!entry.address_set.has(address))
130
- continue;
131
127
  entry.address_set.delete(address);
132
128
  try {
133
129
  console.log(`remove_address: Updating webhook addresses to :`, Array.from(entry.address_set));
@@ -157,7 +153,6 @@ class QnWebhookAddressManager {
157
153
  const entries = (yield this.ensure_loaded(blockchain))
158
154
  .filter(e => keys.some(k => this.matches_key(e, k)));
159
155
  for (const entry of entries) {
160
- // if (entry.address_set.has(address)) continue;
161
156
  if (!entry.address_set.has(address) && !entry.address_set.has(address.toLowerCase()))
162
157
  entry.address_set.add(address);
163
158
  try {
@@ -188,7 +183,6 @@ class QnWebhookAddressManager {
188
183
  const entries = (yield this.ensure_loaded(blockchain))
189
184
  .filter(e => keys.some(k => this.matches_key(e, k)));
190
185
  for (const entry of entries) {
191
- // if (!entry.address_set.has(address)) continue;
192
186
  if (entry.address_set.has(address) || entry.address_set.has(address.toLowerCase()))
193
187
  entry.address_set.delete(address);
194
188
  try {
@@ -216,8 +210,6 @@ class QnWebhookAddressManager {
216
210
  const entries = (yield this.ensure_loaded(blockchain))
217
211
  .filter(e => !exclude_keys.some(k => this.matches_key(e, k)));
218
212
  for (const entry of entries) {
219
- if (entry.address_set.has(address))
220
- continue;
221
213
  entry.address_set.add(address);
222
214
  try {
223
215
  console.log(`sync_add_to_remaining: Updating webhook addresses. new set ${entry.address_set.size} addresses`);
@@ -242,8 +234,6 @@ class QnWebhookAddressManager {
242
234
  const entries = (yield this.ensure_loaded(blockchain))
243
235
  .filter(e => !exclude_keys.some(k => this.matches_key(e, k)));
244
236
  for (const entry of entries) {
245
- if (!entry.address_set.has(address))
246
- continue;
247
237
  entry.address_set.delete(address);
248
238
  try {
249
239
  console.log(`sync_remove_from_remaining: Updating webhook addresses. new set ${entry.address_set.size} addresses`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ercworldio/blockchain-shared",
3
- "version": "1.0.1-dev.18",
3
+ "version": "1.0.1-dev.19",
4
4
  "description": "Shared library for blockchain projects",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",