@instadapp/interop-x 0.0.0-dev.fabee70 → 0.0.0-dev.fbcbec6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. package/.github/workflows/ci.yml +19 -0
  2. package/dist/package.json +14 -13
  3. package/dist/src/abi/index.js +2 -4
  4. package/dist/src/abi/interopX.json +1436 -0
  5. package/dist/src/alias.js +10 -0
  6. package/dist/src/api/index.js +3 -0
  7. package/dist/src/config/index.js +10 -1
  8. package/dist/src/constants/addresses.js +2 -7
  9. package/dist/src/constants/index.js +0 -1
  10. package/dist/src/constants/tokens.js +62 -39
  11. package/dist/src/db/models/transaction.js +29 -11
  12. package/dist/src/gnosis/actions/index.js +9 -0
  13. package/dist/src/gnosis/actions/withdraw/index.js +114 -0
  14. package/dist/src/gnosis/index.js +20 -0
  15. package/dist/src/index.js +34 -22
  16. package/dist/src/net/protocol/dial/SignatureDialProtocol.js +9 -10
  17. package/dist/src/net/protocol/dial/{SignatureDialProtocol.1.js → TransactionStatusDialProtocol.js} +2 -0
  18. package/dist/src/net/protocol/index.js +17 -7
  19. package/dist/src/tasks/AutoUpdateTask.js +20 -7
  20. package/dist/src/tasks/BaseTask.js +4 -0
  21. package/dist/src/tasks/InteropX/SyncLogSubmitEvents.js +84 -0
  22. package/dist/src/tasks/Transactions/SyncTransactionStatusTask.js +8 -3
  23. package/dist/src/tasks/index.js +9 -19
  24. package/dist/src/typechain/{InteropBridgeToken.js → InteropX.js} +0 -0
  25. package/dist/src/typechain/factories/InteropX__factory.js +1928 -0
  26. package/dist/src/typechain/factories/index.js +3 -5
  27. package/dist/src/typechain/index.js +3 -5
  28. package/dist/src/utils/index.js +46 -89
  29. package/package.json +14 -13
  30. package/src/abi/index.ts +2 -4
  31. package/src/abi/interopX.json +1436 -0
  32. package/src/alias.ts +6 -0
  33. package/src/api/index.ts +3 -0
  34. package/src/config/index.ts +9 -1
  35. package/src/constants/addresses.ts +3 -8
  36. package/src/constants/index.ts +0 -1
  37. package/src/constants/tokens.ts +63 -40
  38. package/src/db/models/transaction.ts +65 -25
  39. package/src/gnosis/actions/index.ts +5 -0
  40. package/src/gnosis/actions/withdraw/index.ts +155 -0
  41. package/src/gnosis/index.ts +19 -0
  42. package/src/index.ts +47 -26
  43. package/src/net/protocol/dial/SignatureDialProtocol.ts +11 -13
  44. package/src/net/protocol/dial/{SignatureDialProtocol.1.ts → TransactionStatusDialProtocol.ts} +3 -1
  45. package/src/net/protocol/index.ts +17 -7
  46. package/src/tasks/AutoUpdateTask.ts +24 -15
  47. package/src/tasks/BaseTask.ts +5 -0
  48. package/src/tasks/InteropX/SyncLogSubmitEvents.ts +136 -0
  49. package/src/tasks/Transactions/SyncTransactionStatusTask.ts +8 -3
  50. package/src/tasks/index.ts +12 -22
  51. package/src/typechain/InteropX.ts +1216 -0
  52. package/src/typechain/factories/InteropX__factory.ts +1932 -0
  53. package/src/typechain/factories/index.ts +1 -2
  54. package/src/typechain/index.ts +2 -4
  55. package/src/utils/index.ts +98 -128
  56. package/tsconfig.json +7 -2
  57. package/dist/src/abi/interopBridgeToken.json +0 -286
  58. package/dist/src/abi/interopXGateway.json +0 -184
  59. package/dist/src/constants/itokens.js +0 -13
  60. package/dist/src/tasks/InteropBridge/ProcessWithdrawEvents.js +0 -146
  61. package/dist/src/tasks/InteropBridge/SyncWithdrawEvents.js +0 -69
  62. package/dist/src/tasks/InteropXGateway/ProcessDepositEvents.js +0 -149
  63. package/dist/src/tasks/InteropXGateway/SyncDepositEvents.js +0 -74
  64. package/dist/src/typechain/InteropXGateway.js +0 -2
  65. package/dist/src/typechain/factories/InteropBridgeToken__factory.js +0 -459
  66. package/dist/src/typechain/factories/InteropXGateway__factory.js +0 -265
  67. package/src/abi/interopBridgeToken.json +0 -286
  68. package/src/abi/interopXGateway.json +0 -184
  69. package/src/constants/itokens.ts +0 -10
  70. package/src/tasks/InteropBridge/ProcessWithdrawEvents.ts +0 -231
  71. package/src/tasks/InteropBridge/SyncWithdrawEvents.ts +0 -119
  72. package/src/tasks/InteropXGateway/ProcessDepositEvents.ts +0 -243
  73. package/src/tasks/InteropXGateway/SyncDepositEvents.ts +0 -124
  74. package/src/typechain/InteropBridgeToken.ts +0 -686
  75. package/src/typechain/InteropXGateway.ts +0 -407
  76. package/src/typechain/factories/InteropBridgeToken__factory.ts +0 -466
  77. package/src/typechain/factories/InteropXGateway__factory.ts +0 -272
@@ -0,0 +1,19 @@
1
+ name: Interop X CI
2
+
3
+ on:
4
+ push:
5
+
6
+ jobs:
7
+ build:
8
+
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - name: Use Node.js
14
+ uses: actions/setup-node@v1
15
+ with:
16
+ node-version: 16
17
+ - name: Install dependencies
18
+ run: yarn --frozen-lockfile
19
+ - run: yarn run build
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instadapp/interop-x",
3
- "version": "0.0.0-dev.fabee70",
3
+ "version": "0.0.0-dev.fbcbec6",
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,17 +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",
31
- "bignumber.js": "^9.0.2",
30
+ "axios": "^0.27.2",
31
+ "axios-retry": "^3.2.5",
32
32
  "chalk": "4.1.2",
33
- "dotenv": "^16.0.0",
33
+ "dotenv": "^16.0.1",
34
34
  "ethereumjs-util": "^7.1.4",
35
- "ethers": "^5.6.4",
35
+ "ethers": "^5.6.5",
36
36
  "ethers-multisend": "^2.1.1",
37
37
  "expand-home-dir": "^0.0.3",
38
- "fastify": "^3.28.0",
38
+ "fastify": "^3.29.0",
39
+ "fs-extra": "^10.1.0",
39
40
  "libp2p": "^0.36.2",
40
41
  "libp2p-bootstrap": "^0.14.0",
41
42
  "libp2p-kad-dht": "^0.28.6",
@@ -45,12 +46,12 @@
45
46
  "libp2p-pubsub-peer-discovery": "^4.0.0",
46
47
  "libp2p-tcp": "^0.17.2",
47
48
  "libp2p-websockets": "^0.16.2",
48
- "luxon": "^2.3.2",
49
+ "luxon": "^2.4.0",
49
50
  "module-alias": "^2.2.2",
50
51
  "patch-package": "^6.4.7",
51
52
  "postinstall-postinstall": "^2.1.0",
52
53
  "sequelize": "6.18.0",
53
- "sqlite3": "^5.0.5",
54
+ "sqlite3": "^5.0.8",
54
55
  "waait": "^1.0.5"
55
56
  },
56
57
  "bin": {
@@ -61,13 +62,13 @@
61
62
  "@typechain/ethers-v5": "^10.0.0",
62
63
  "@types/bn.js": "^5.1.0",
63
64
  "@types/fs-extra": "^9.0.13",
64
- "@types/node": "^17.0.17",
65
- "nodemon": "^2.0.15",
65
+ "@types/node": "^17.0.33",
66
+ "nodemon": "^2.0.16",
66
67
  "replace-in-file": "^6.3.2",
67
68
  "rimraf": "^3.0.2",
68
69
  "ts-node": "^10.5.0",
69
70
  "tsconfig-paths": "^3.12.0",
70
71
  "typechain": "^8.0.0",
71
- "typescript": "^4.5.5"
72
+ "typescript": "^4.6.4"
72
73
  }
73
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
  };