@instadapp/interop-x 0.0.0-dev.a846f65 → 0.0.0-dev.a9cd1d2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/dist/package.json +14 -12
  2. package/dist/src/abi/index.js +2 -4
  3. package/dist/src/abi/interopX.json +1436 -0
  4. package/dist/src/alias.js +10 -0
  5. package/dist/src/api/index.js +3 -0
  6. package/dist/src/config/index.js +10 -1
  7. package/dist/src/constants/addresses.js +2 -7
  8. package/dist/src/constants/index.js +0 -1
  9. package/dist/src/constants/tokens.js +62 -39
  10. package/dist/src/db/models/transaction.js +29 -11
  11. package/dist/src/gnosis/actions/index.js +9 -0
  12. package/dist/src/gnosis/actions/withdraw/index.js +114 -0
  13. package/dist/src/gnosis/index.js +20 -0
  14. package/dist/src/index.js +34 -22
  15. package/dist/src/net/protocol/dial/SignatureDialProtocol.js +9 -10
  16. package/dist/src/net/protocol/dial/{SignatureDialProtocol.1.js → TransactionStatusDialProtocol.js} +2 -0
  17. package/dist/src/net/protocol/index.js +17 -7
  18. package/dist/src/tasks/AutoUpdateTask.js +11 -8
  19. package/dist/src/tasks/BaseTask.js +4 -0
  20. package/dist/src/tasks/InteropX/SyncLogSubmitEvents.js +84 -0
  21. package/dist/src/tasks/Transactions/SyncTransactionStatusTask.js +6 -2
  22. package/dist/src/tasks/index.js +7 -19
  23. package/dist/src/typechain/{InteropBridgeToken.js → InteropX.js} +0 -0
  24. package/dist/src/typechain/factories/InteropX__factory.js +1928 -0
  25. package/dist/src/typechain/factories/index.js +3 -5
  26. package/dist/src/typechain/index.js +3 -5
  27. package/dist/src/utils/index.js +46 -89
  28. package/package.json +14 -12
  29. package/src/abi/index.ts +2 -4
  30. package/src/abi/interopX.json +1436 -0
  31. package/src/alias.ts +6 -0
  32. package/src/api/index.ts +3 -0
  33. package/src/config/index.ts +9 -1
  34. package/src/constants/addresses.ts +3 -8
  35. package/src/constants/index.ts +0 -1
  36. package/src/constants/tokens.ts +63 -40
  37. package/src/db/models/transaction.ts +65 -25
  38. package/src/gnosis/actions/index.ts +5 -0
  39. package/src/gnosis/actions/withdraw/index.ts +155 -0
  40. package/src/gnosis/index.ts +19 -0
  41. package/src/index.ts +47 -26
  42. package/src/net/protocol/dial/SignatureDialProtocol.ts +11 -13
  43. package/src/net/protocol/dial/{SignatureDialProtocol.1.ts → TransactionStatusDialProtocol.ts} +3 -1
  44. package/src/net/protocol/index.ts +17 -7
  45. package/src/tasks/AutoUpdateTask.ts +15 -14
  46. package/src/tasks/BaseTask.ts +5 -0
  47. package/src/tasks/InteropX/SyncLogSubmitEvents.ts +136 -0
  48. package/src/tasks/Transactions/SyncTransactionStatusTask.ts +6 -2
  49. package/src/tasks/index.ts +12 -23
  50. package/src/typechain/InteropX.ts +1216 -0
  51. package/src/typechain/factories/InteropX__factory.ts +1932 -0
  52. package/src/typechain/factories/index.ts +1 -2
  53. package/src/typechain/index.ts +2 -4
  54. package/src/utils/index.ts +98 -128
  55. package/tsconfig.json +7 -2
  56. package/dist/src/abi/interopBridgeToken.json +0 -286
  57. package/dist/src/abi/interopXGateway.json +0 -184
  58. package/dist/src/constants/itokens.js +0 -13
  59. package/dist/src/tasks/InteropBridge/ProcessWithdrawEvents.js +0 -146
  60. package/dist/src/tasks/InteropBridge/SyncWithdrawEvents.js +0 -69
  61. package/dist/src/tasks/InteropXGateway/ProcessDepositEvents.js +0 -149
  62. package/dist/src/tasks/InteropXGateway/SyncDepositEvents.js +0 -74
  63. package/dist/src/typechain/InteropXGateway.js +0 -2
  64. package/dist/src/typechain/factories/InteropBridgeToken__factory.js +0 -459
  65. package/dist/src/typechain/factories/InteropXGateway__factory.js +0 -265
  66. package/src/abi/interopBridgeToken.json +0 -286
  67. package/src/abi/interopXGateway.json +0 -184
  68. package/src/constants/itokens.ts +0 -10
  69. package/src/tasks/InteropBridge/ProcessWithdrawEvents.ts +0 -231
  70. package/src/tasks/InteropBridge/SyncWithdrawEvents.ts +0 -119
  71. package/src/tasks/InteropXGateway/ProcessDepositEvents.ts +0 -243
  72. package/src/tasks/InteropXGateway/SyncDepositEvents.ts +0 -124
  73. package/src/typechain/InteropBridgeToken.ts +0 -686
  74. package/src/typechain/InteropXGateway.ts +0 -407
  75. package/src/typechain/factories/InteropBridgeToken__factory.ts +0 -466
  76. package/src/typechain/factories/InteropXGateway__factory.ts +0 -272
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instadapp/interop-x",
3
- "version": "0.0.0-dev.a846f65",
3
+ "version": "0.0.0-dev.a9cd1d2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -11,7 +11,7 @@
11
11
  "start": "yarn build && node bin/interop-x",
12
12
  "build": "yarn generate-abi-types && export GIT_REF=$(git rev-parse --short HEAD) && rimraf ./dist && tsc -p tsconfig.json && replace-in-file '@GIT_SHORT_HASH@' $GIT_REF ./dist/**/*.js",
13
13
  "dev": "yarn generate-abi-types && NODE_ENV=development nodemon",
14
- "generate-abi-types": "typechain --target=ethers-v5 'src/abi/*.json' --out-dir 'src/typechain'",
14
+ "generate-abi-types": "rimraf src/typechain && typechain --target=ethers-v5 'src/abi/*.json' --out-dir 'src/typechain'",
15
15
  "prepublishOnly": "yarn build",
16
16
  "postinstall": "patch-package"
17
17
  },
@@ -25,16 +25,18 @@
25
25
  "dependencies": {
26
26
  "@achingbrain/libp2p-gossipsub": "^0.12.2",
27
27
  "@fastify/cors": "^7.0.0",
28
+ "async-retry": "^1.3.3",
28
29
  "await-spawn": "^4.0.2",
29
- "axios": "^0.27.1",
30
- "axios-retry": "^3.2.4",
30
+ "axios": "^0.27.2",
31
+ "axios-retry": "^3.2.5",
31
32
  "chalk": "4.1.2",
32
- "dotenv": "^16.0.0",
33
+ "dotenv": "^16.0.1",
33
34
  "ethereumjs-util": "^7.1.4",
34
- "ethers": "^5.6.4",
35
+ "ethers": "^5.6.5",
35
36
  "ethers-multisend": "^2.1.1",
36
37
  "expand-home-dir": "^0.0.3",
37
- "fastify": "^3.28.0",
38
+ "fastify": "^3.29.0",
39
+ "fs-extra": "^10.1.0",
38
40
  "libp2p": "^0.36.2",
39
41
  "libp2p-bootstrap": "^0.14.0",
40
42
  "libp2p-kad-dht": "^0.28.6",
@@ -44,12 +46,12 @@
44
46
  "libp2p-pubsub-peer-discovery": "^4.0.0",
45
47
  "libp2p-tcp": "^0.17.2",
46
48
  "libp2p-websockets": "^0.16.2",
47
- "luxon": "^2.3.2",
49
+ "luxon": "^2.4.0",
48
50
  "module-alias": "^2.2.2",
49
51
  "patch-package": "^6.4.7",
50
52
  "postinstall-postinstall": "^2.1.0",
51
53
  "sequelize": "6.18.0",
52
- "sqlite3": "^5.0.5",
54
+ "sqlite3": "^5.0.8",
53
55
  "waait": "^1.0.5"
54
56
  },
55
57
  "bin": {
@@ -60,13 +62,13 @@
60
62
  "@typechain/ethers-v5": "^10.0.0",
61
63
  "@types/bn.js": "^5.1.0",
62
64
  "@types/fs-extra": "^9.0.13",
63
- "@types/node": "^17.0.17",
64
- "nodemon": "^2.0.15",
65
+ "@types/node": "^17.0.33",
66
+ "nodemon": "^2.0.16",
65
67
  "replace-in-file": "^6.3.2",
66
68
  "rimraf": "^3.0.2",
67
69
  "ts-node": "^10.5.0",
68
70
  "tsconfig-paths": "^3.12.0",
69
71
  "typechain": "^8.0.0",
70
- "typescript": "^4.5.5"
72
+ "typescript": "^4.6.4"
71
73
  }
72
74
  }
@@ -5,11 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const gnosisSafe_json_1 = __importDefault(require("./gnosisSafe.json"));
7
7
  const erc20_json_1 = __importDefault(require("./erc20.json"));
8
- const interopXGateway_json_1 = __importDefault(require("./interopXGateway.json"));
9
- const interopBridgeToken_json_1 = __importDefault(require("./interopBridgeToken.json"));
8
+ const interopX_json_1 = __importDefault(require("./interopX.json"));
10
9
  exports.default = {
11
10
  gnosisSafe: gnosisSafe_json_1.default,
12
11
  erc20: erc20_json_1.default,
13
- interopXGateway: interopXGateway_json_1.default,
14
- interopBridgeToken: interopBridgeToken_json_1.default,
12
+ interopX: interopX_json_1.default,
15
13
  };