@instadapp/interop-x 0.0.0-dev.f78418c → 0.0.0-dev.fbcbec6
Sign up to get free protection for your applications and to get access to all the features.
- package/.env.example +2 -1
- package/.github/workflows/ci.yml +19 -0
- package/bin/interop-x +1 -1
- package/dist/package.json +74 -0
- package/dist/{abi → src/abi}/erc20.json +0 -0
- package/dist/{abi → src/abi}/gnosisSafe.json +0 -0
- package/dist/{abi → src/abi}/index.js +2 -4
- package/dist/src/abi/interopX.json +1436 -0
- package/dist/src/alias.js +10 -0
- package/dist/src/api/index.js +36 -0
- package/dist/src/config/index.js +31 -0
- package/dist/src/constants/addresses.js +15 -0
- package/dist/{constants → src/constants}/index.js +0 -0
- package/dist/{constants → src/constants}/tokens.js +62 -39
- package/dist/{db → src/db}/index.js +0 -0
- package/dist/{db → src/db}/models/index.js +0 -0
- package/dist/{db → src/db}/models/transaction.js +29 -9
- package/dist/{db → src/db}/sequelize.js +2 -1
- package/dist/src/gnosis/actions/index.js +9 -0
- package/dist/src/gnosis/actions/withdraw/index.js +114 -0
- package/dist/src/gnosis/index.js +20 -0
- package/dist/src/index.js +119 -0
- package/dist/{logger → src/logger}/index.js +0 -0
- package/dist/{net → src/net}/index.js +0 -0
- package/dist/{net → src/net}/peer/index.js +8 -3
- package/dist/{net → src/net}/pool/index.js +32 -9
- package/dist/{net → src/net}/protocol/dial/BaseDialProtocol.js +0 -0
- package/dist/{net → src/net}/protocol/dial/SignatureDialProtocol.js +21 -12
- package/dist/src/net/protocol/dial/TransactionStatusDialProtocol.js +30 -0
- package/dist/{net → src/net}/protocol/index.js +51 -1
- package/dist/src/tasks/AutoUpdateTask.js +70 -0
- package/dist/{tasks → src/tasks}/BaseTask.js +12 -4
- package/dist/src/tasks/InteropX/SyncLogSubmitEvents.js +84 -0
- package/dist/src/tasks/Transactions/SyncTransactionStatusTask.js +58 -0
- package/dist/src/tasks/index.js +34 -0
- package/dist/{typechain → src/typechain}/Erc20.js +0 -0
- package/dist/{typechain → src/typechain}/GnosisSafe.js +0 -0
- package/dist/{typechain/InteropBridgeToken.js → src/typechain/InteropX.js} +0 -0
- package/dist/{typechain → src/typechain}/common.js +0 -0
- package/dist/{typechain → src/typechain}/factories/Erc20__factory.js +0 -0
- package/dist/{typechain → src/typechain}/factories/GnosisSafe__factory.js +0 -0
- package/dist/src/typechain/factories/InteropX__factory.js +1928 -0
- package/dist/src/typechain/factories/index.js +12 -0
- package/dist/{typechain → src/typechain}/index.js +3 -5
- package/dist/{types.js → src/types.js} +0 -0
- package/dist/src/utils/index.js +195 -0
- package/package.json +23 -28
- package/patches/@ethersproject+properties+5.6.0.patch +13 -0
- package/src/abi/index.ts +2 -4
- package/src/abi/interopX.json +1436 -0
- package/src/alias.ts +6 -0
- package/src/api/index.ts +36 -0
- package/src/config/index.ts +17 -1
- package/src/constants/addresses.ts +3 -16
- package/src/constants/tokens.ts +63 -40
- package/src/db/models/transaction.ts +69 -25
- package/src/db/sequelize.ts +2 -1
- package/src/gnosis/actions/index.ts +5 -0
- package/src/gnosis/actions/withdraw/index.ts +155 -0
- package/src/gnosis/index.ts +19 -0
- package/src/index.ts +107 -7
- package/src/net/peer/index.ts +9 -7
- package/src/net/pool/index.ts +41 -11
- package/src/net/protocol/dial/SignatureDialProtocol.ts +23 -13
- package/src/net/protocol/dial/TransactionStatusDialProtocol.ts +33 -0
- package/src/net/protocol/index.ts +67 -1
- package/src/tasks/AutoUpdateTask.ts +82 -0
- package/src/tasks/BaseTask.ts +14 -4
- package/src/tasks/InteropX/SyncLogSubmitEvents.ts +136 -0
- package/src/tasks/Transactions/SyncTransactionStatusTask.ts +70 -0
- package/src/tasks/index.ts +17 -5
- package/src/typechain/InteropX.ts +1216 -0
- package/src/typechain/factories/InteropX__factory.ts +1932 -0
- package/src/typechain/factories/index.ts +1 -2
- package/src/typechain/index.ts +2 -4
- package/src/utils/index.ts +170 -10
- package/tsconfig.json +7 -2
- package/dist/abi/interopBridgeToken.json +0 -286
- package/dist/abi/interopXGateway.json +0 -184
- package/dist/config/index.js +0 -17
- package/dist/constants/addresses.js +0 -28
- package/dist/index.js +0 -43
- package/dist/tasks/InteropXGateway/SyncDepositEvents.js +0 -79
- package/dist/tasks/index.js +0 -27
- package/dist/typechain/InteropXGateway.js +0 -2
- package/dist/typechain/factories/InteropBridgeToken__factory.js +0 -459
- package/dist/typechain/factories/InteropXGateway__factory.js +0 -265
- package/dist/typechain/factories/index.js +0 -14
- package/dist/utils/index.js +0 -101
- package/src/abi/interopBridgeToken.json +0 -286
- package/src/abi/interopXGateway.json +0 -184
- package/src/tasks/InteropXGateway/SyncDepositEvents.ts +0 -114
- package/src/typechain/InteropBridgeToken.ts +0 -686
- package/src/typechain/InteropXGateway.ts +0 -407
- package/src/typechain/factories/InteropBridgeToken__factory.ts +0 -466
- package/src/typechain/factories/InteropXGateway__factory.ts +0 -272
package/.env.example
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
PRIVATE_KEY=
|
1
|
+
PRIVATE_KEY=
|
2
|
+
STAGING=
|
@@ -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/bin/interop-x
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
require('../dist/index')
|
2
|
+
require('../dist/src/index')
|
@@ -0,0 +1,74 @@
|
|
1
|
+
{
|
2
|
+
"name": "@instadapp/interop-x",
|
3
|
+
"version": "0.0.0-dev.fbcbec6",
|
4
|
+
"license": "MIT",
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"engines": {
|
7
|
+
"node": ">=16",
|
8
|
+
"yarn": "^1.22.0"
|
9
|
+
},
|
10
|
+
"scripts": {
|
11
|
+
"start": "yarn build && node bin/interop-x",
|
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
|
+
"dev": "yarn generate-abi-types && NODE_ENV=development nodemon",
|
14
|
+
"generate-abi-types": "rimraf src/typechain && typechain --target=ethers-v5 'src/abi/*.json' --out-dir 'src/typechain'",
|
15
|
+
"prepublishOnly": "yarn build",
|
16
|
+
"postinstall": "patch-package"
|
17
|
+
},
|
18
|
+
"nodemonConfig": {
|
19
|
+
"watch": [
|
20
|
+
"src"
|
21
|
+
],
|
22
|
+
"ext": "ts",
|
23
|
+
"exec": "./node_modules/.bin/ts-node --files -r tsconfig-paths/register ./src/index.ts"
|
24
|
+
},
|
25
|
+
"dependencies": {
|
26
|
+
"@achingbrain/libp2p-gossipsub": "^0.12.2",
|
27
|
+
"@fastify/cors": "^7.0.0",
|
28
|
+
"async-retry": "^1.3.3",
|
29
|
+
"await-spawn": "^4.0.2",
|
30
|
+
"axios": "^0.27.2",
|
31
|
+
"axios-retry": "^3.2.5",
|
32
|
+
"chalk": "4.1.2",
|
33
|
+
"dotenv": "^16.0.1",
|
34
|
+
"ethereumjs-util": "^7.1.4",
|
35
|
+
"ethers": "^5.6.5",
|
36
|
+
"ethers-multisend": "^2.1.1",
|
37
|
+
"expand-home-dir": "^0.0.3",
|
38
|
+
"fastify": "^3.29.0",
|
39
|
+
"fs-extra": "^10.1.0",
|
40
|
+
"libp2p": "^0.36.2",
|
41
|
+
"libp2p-bootstrap": "^0.14.0",
|
42
|
+
"libp2p-kad-dht": "^0.28.6",
|
43
|
+
"libp2p-mdns": "^0.18.0",
|
44
|
+
"libp2p-mplex": "^0.10.7",
|
45
|
+
"libp2p-noise": "^4.0.0",
|
46
|
+
"libp2p-pubsub-peer-discovery": "^4.0.0",
|
47
|
+
"libp2p-tcp": "^0.17.2",
|
48
|
+
"libp2p-websockets": "^0.16.2",
|
49
|
+
"luxon": "^2.4.0",
|
50
|
+
"module-alias": "^2.2.2",
|
51
|
+
"patch-package": "^6.4.7",
|
52
|
+
"postinstall-postinstall": "^2.1.0",
|
53
|
+
"sequelize": "6.18.0",
|
54
|
+
"sqlite3": "^5.0.8",
|
55
|
+
"waait": "^1.0.5"
|
56
|
+
},
|
57
|
+
"bin": {
|
58
|
+
"interop-x": "bin/interop-x",
|
59
|
+
"interopx": "bin/interop-x"
|
60
|
+
},
|
61
|
+
"devDependencies": {
|
62
|
+
"@typechain/ethers-v5": "^10.0.0",
|
63
|
+
"@types/bn.js": "^5.1.0",
|
64
|
+
"@types/fs-extra": "^9.0.13",
|
65
|
+
"@types/node": "^17.0.33",
|
66
|
+
"nodemon": "^2.0.16",
|
67
|
+
"replace-in-file": "^6.3.2",
|
68
|
+
"rimraf": "^3.0.2",
|
69
|
+
"ts-node": "^10.5.0",
|
70
|
+
"tsconfig-paths": "^3.12.0",
|
71
|
+
"typechain": "^8.0.0",
|
72
|
+
"typescript": "^4.6.4"
|
73
|
+
}
|
74
|
+
}
|
File without changes
|
File without changes
|
@@ -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
|
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
|
-
|
14
|
-
interopBridgeToken: interopBridgeToken_json_1.default,
|
12
|
+
interopX: interopX_json_1.default,
|
15
13
|
};
|