@instadapp/interop-x 0.0.0-dev.92afe89 → 0.0.0-dev.9387bd9
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/bin/interop-x +1 -1
- package/dist/config/index.js +1 -1
- package/dist/constants/addresses.js +1 -1
- package/dist/index.js +12 -4
- package/dist/net/protocol/dial/SignatureDialProtocol.js +1 -1
- package/package.json +2 -2
- package/src/config/index.ts +1 -1
- package/src/constants/addresses.ts +1 -1
- package/src/index.ts +13 -4
- package/src/net/protocol/dial/SignatureDialProtocol.ts +1 -1
package/bin/interop-x
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
require('../dist/
|
2
|
+
require('../dist/index')
|
package/dist/config/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const ethers_1 = require("ethers");
|
4
|
-
const types_1 = require("types");
|
4
|
+
const types_1 = require("../types");
|
5
5
|
class Config {
|
6
6
|
constructor() {
|
7
7
|
this.events = new types_1.EventBus();
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addresses = void 0;
|
4
4
|
exports.addresses = {
|
5
5
|
1: {
|
6
|
-
gnosisSafe: '
|
6
|
+
gnosisSafe: '0x811Bff6eF88dAAA0aD6438386B534A81cE3F160F',
|
7
7
|
multisend: "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",
|
8
8
|
},
|
9
9
|
137: {
|
package/dist/index.js
CHANGED
@@ -3,14 +3,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const
|
6
|
+
const assert_1 = __importDefault(require("assert"));
|
7
7
|
const dotenv_1 = __importDefault(require("dotenv"));
|
8
|
-
const tasks_1 = require("tasks");
|
9
8
|
const logger_1 = __importDefault(require("./logger"));
|
10
|
-
const
|
9
|
+
const ethers_1 = require("ethers");
|
11
10
|
dotenv_1.default.config();
|
12
|
-
(0, console_1.assert)(process.env.PRIVATE_KEY, "PRIVATE_KEY is not defined");
|
13
11
|
const logger = new logger_1.default('Process');
|
12
|
+
(0, assert_1.default)(process.env.PRIVATE_KEY, "PRIVATE_KEY is not defined");
|
13
|
+
try {
|
14
|
+
new ethers_1.ethers.Wallet(process.env.PRIVATE_KEY);
|
15
|
+
}
|
16
|
+
catch (e) {
|
17
|
+
logger.error('Invalid private key');
|
18
|
+
process.exit(1);
|
19
|
+
}
|
20
|
+
const tasks_1 = require("./tasks");
|
21
|
+
const net_1 = require("./net");
|
14
22
|
async function main() {
|
15
23
|
(0, net_1.startPeer)({});
|
16
24
|
const tasks = new tasks_1.Tasks();
|
@@ -7,7 +7,7 @@ exports.SignatureDialProtocol = void 0;
|
|
7
7
|
const utils_1 = require("../../../utils");
|
8
8
|
const BaseDialProtocol_1 = require("./BaseDialProtocol");
|
9
9
|
const waait_1 = __importDefault(require("waait"));
|
10
|
-
const config_1 = __importDefault(require("config"));
|
10
|
+
const config_1 = __importDefault(require("../../../config"));
|
11
11
|
const constants_1 = require("../../../constants");
|
12
12
|
const db_1 = require("db");
|
13
13
|
class SignatureDialProtocol extends BaseDialProtocol_1.BaseDialProtocol {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@instadapp/interop-x",
|
3
|
-
"version": "0.0.0-dev.
|
3
|
+
"version": "0.0.0-dev.9387bd9",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"engines": {
|
@@ -9,7 +9,7 @@
|
|
9
9
|
},
|
10
10
|
"scripts": {
|
11
11
|
"start": "yarn build && node bin/interop-x",
|
12
|
-
"build": "export GIT_REF=$(git rev-parse --short HEAD) && rimraf ./dist && tsc -p tsconfig.json && replace-in-file '@GIT_SHORT_HASH@' $GIT_REF ./dist
|
12
|
+
"build": "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": "NODE_ENV=development nodemon",
|
14
14
|
"prepublishOnly": "yarn build"
|
15
15
|
},
|
package/src/config/index.ts
CHANGED
package/src/index.ts
CHANGED
@@ -1,13 +1,22 @@
|
|
1
|
-
import
|
1
|
+
import assert from "assert";
|
2
2
|
import dotenv from "dotenv";
|
3
|
-
import { Tasks } from "tasks";
|
4
3
|
import Logger from "./logger";
|
5
|
-
import {
|
4
|
+
import { ethers } from "ethers";
|
6
5
|
dotenv.config();
|
6
|
+
const logger = new Logger('Process')
|
7
7
|
|
8
8
|
assert(process.env.PRIVATE_KEY, "PRIVATE_KEY is not defined");
|
9
9
|
|
10
|
-
|
10
|
+
try {
|
11
|
+
new ethers.Wallet(process.env.PRIVATE_KEY!)
|
12
|
+
} catch (e) {
|
13
|
+
logger.error('Invalid private key')
|
14
|
+
process.exit(1)
|
15
|
+
}
|
16
|
+
|
17
|
+
import { Tasks } from "./tasks";
|
18
|
+
import { startPeer } from "./net";
|
19
|
+
|
11
20
|
|
12
21
|
async function main() {
|
13
22
|
|
@@ -2,7 +2,7 @@ import { signGnosisSafeTx } from "../../../utils";
|
|
2
2
|
import { BaseDialProtocol } from "./BaseDialProtocol";
|
3
3
|
import wait from "waait";
|
4
4
|
import { ChainId } from "../../../types";
|
5
|
-
import config from "config";
|
5
|
+
import config from "../../../config";
|
6
6
|
import { addresses } from "../../../constants";
|
7
7
|
import { Execution } from "db";
|
8
8
|
|