@socket.tech/dl-common 1.0.2-test.4 → 1.0.2-test.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.
package/README.md CHANGED
@@ -1,18 +1,18 @@
1
1
  # dl-batcher-service
2
2
 
3
- to start server locally,
3
+ to start server locally,
4
4
  `npm run start`
5
5
 
6
- to deploy complete service to dev,
6
+ to deploy complete service to dev,
7
7
  `npm run deploy`
8
8
 
9
- to deploy a sepific function (for example if change in apis, can only deploy routeHandler. Similarly if only change in cron timings, can deploy only cronHandler) -
9
+ to deploy a sepific function (for example if change in apis, can only deploy routeHandler. Similarly if only change in cron timings, can deploy only cronHandler) -
10
10
  `sls deploy -f cronHandler`
11
11
 
12
- to check logs locally in terminal -
12
+ to check logs locally in terminal -
13
13
  `sls logs -f <function>`
14
14
 
15
- for publishing -
15
+ for publishing -
16
16
  `yarn lint`
17
17
  `yarn run build`
18
- `npm publish`
18
+ `npm publish`
@@ -58,7 +58,6 @@ export type SealParams = {
58
58
  };
59
59
  packet: {
60
60
  capacitorPacketCount: string;
61
- rootHash: string;
62
61
  packetId: string;
63
62
  srcCapacitor: string;
64
63
  root: string;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addSignatureHooks = exports.AttestSignatureModel = exports.AttestSignature = void 0;
4
4
  const sequelize_1 = require("sequelize");
5
- const __1 = require("..");
5
+ const utils_1 = require("../utils");
6
6
  class AttestSignature extends sequelize_1.Model {
7
7
  }
8
8
  exports.AttestSignature = AttestSignature;
@@ -33,10 +33,10 @@ exports.AttestSignatureModel = {
33
33
  };
34
34
  function processStrings(attestSignature) {
35
35
  if (attestSignature.packetId) {
36
- attestSignature.packetId = (0, __1.toLowerCase)(attestSignature.packetId);
36
+ attestSignature.packetId = (0, utils_1.toLowerCase)(attestSignature.packetId);
37
37
  }
38
38
  if (attestSignature.signature) {
39
- attestSignature.signature = (0, __1.toLowerCase)(attestSignature.signature);
39
+ attestSignature.signature = (0, utils_1.toLowerCase)(attestSignature.signature);
40
40
  }
41
41
  return attestSignature;
42
42
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addAttestationHooks = exports.AttestationModel = exports.Attestation = void 0;
4
4
  const sequelize_1 = require("sequelize");
5
- const __1 = require("..");
5
+ const utils_1 = require("../utils");
6
6
  class Attestation extends sequelize_1.Model {
7
7
  }
8
8
  exports.Attestation = Attestation;
@@ -71,16 +71,16 @@ const addAttestationHooks = () => {
71
71
  exports.addAttestationHooks = addAttestationHooks;
72
72
  function processStrings(packet) {
73
73
  if (packet.packetId)
74
- packet.packetId = (0, __1.toLowerCase)(packet.packetId);
74
+ packet.packetId = (0, utils_1.toLowerCase)(packet.packetId);
75
75
  if (packet.root)
76
- packet.root = (0, __1.toLowerCase)(packet.root);
76
+ packet.root = (0, utils_1.toLowerCase)(packet.root);
77
77
  if (packet.switchboard)
78
- packet.switchboard = (0, __1.toLowerCase)(packet.switchboard);
78
+ packet.switchboard = (0, utils_1.toLowerCase)(packet.switchboard);
79
79
  if (packet.attester)
80
- packet.attester = (0, __1.toLowerCase)(packet.attester);
80
+ packet.attester = (0, utils_1.toLowerCase)(packet.attester);
81
81
  if (packet.attestTxId)
82
- packet.attestTxId = (0, __1.toLowerCase)(packet.attestTxId);
82
+ packet.attestTxId = (0, utils_1.toLowerCase)(packet.attestTxId);
83
83
  if (packet.attestTxHash)
84
- packet.attestTxHash = (0, __1.toLowerCase)(packet.attestTxHash);
84
+ packet.attestTxHash = (0, utils_1.toLowerCase)(packet.attestTxHash);
85
85
  return packet;
86
86
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addProposalHooks = exports.ProposalModel = exports.Proposal = exports.ProposalTripRelayStatus = exports.MatchState = exports.RootMatchState = exports.TripStatus = void 0;
4
4
  const sequelize_1 = require("sequelize");
5
- const __1 = require("..");
5
+ const utils_1 = require("../utils");
6
6
  var TripStatus;
7
7
  (function (TripStatus) {
8
8
  TripStatus["TRIP_REQUIRED"] = "TRIP_REQUIRED";
@@ -115,17 +115,17 @@ exports.ProposalModel = {
115
115
  };
116
116
  function processStrings(proposal) {
117
117
  if (proposal.packetId)
118
- proposal.packetId = (0, __1.toLowerCase)(proposal.packetId);
118
+ proposal.packetId = (0, utils_1.toLowerCase)(proposal.packetId);
119
119
  if (proposal.root)
120
- proposal.root = (0, __1.toLowerCase)(proposal.root);
120
+ proposal.root = (0, utils_1.toLowerCase)(proposal.root);
121
121
  if (proposal.switchboard)
122
- proposal.switchboard = (0, __1.toLowerCase)(proposal.switchboard);
122
+ proposal.switchboard = (0, utils_1.toLowerCase)(proposal.switchboard);
123
123
  if (proposal.proposer)
124
- proposal.proposer = (0, __1.toLowerCase)(proposal.proposer);
124
+ proposal.proposer = (0, utils_1.toLowerCase)(proposal.proposer);
125
125
  if (proposal.proposeTxHash)
126
- proposal.proposeTxHash = (0, __1.toLowerCase)(proposal.proposeTxHash);
126
+ proposal.proposeTxHash = (0, utils_1.toLowerCase)(proposal.proposeTxHash);
127
127
  if (proposal.tripTxHash)
128
- proposal.tripTxHash = (0, __1.toLowerCase)(proposal.tripTxHash);
128
+ proposal.tripTxHash = (0, utils_1.toLowerCase)(proposal.tripTxHash);
129
129
  return proposal;
130
130
  }
131
131
  const addProposalHooks = () => {
@@ -6,7 +6,7 @@ const __1 = require("..");
6
6
  * defining functions.
7
7
  */
8
8
  const isEmpty = (data) => {
9
- if (data === undefined || data === null || data === "") {
9
+ if (data === undefined || data === null) {
10
10
  return true;
11
11
  }
12
12
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socket.tech/dl-common",
3
- "version": "1.0.2-test.4",
3
+ "version": "1.0.2-test.6",
4
4
  "main": "./dist/dl-common/index.js",
5
5
  "types": "./dist/dl-common/index.d.ts",
6
6
  "description": "common utilities for socket data layer.",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@aws-sdk/client-sqs": "^3.421.0",
37
37
  "@aws-sdk/smithy-client": "^3.329.0",
38
- "@socket.tech/dl-core": "2.4.9-test.1",
38
+ "@socket.tech/dl-core": "2.4.8-test.1",
39
39
  "@socket.tech/ll-common": "^0.0.19",
40
40
  "async-redis": "^2.0.0",
41
41
  "ethers": "^5.7.1",