Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Commit

Permalink
Deploy indra-4.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Henderson committed Jan 23, 2020
2 parents 9f8aa08 + 3a243a2 commit 115d08d
Show file tree
Hide file tree
Showing 19 changed files with 55 additions and 64 deletions.
6 changes: 3 additions & 3 deletions modules/cf-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@connext/cf-core",
"version": "4.0.2",
"version": "4.0.4",
"main": "dist/src/index.js",
"iife": "dist/src/index.iife.js",
"types": "dist/src/index.d.ts",
Expand All @@ -15,8 +15,8 @@
"test:coverage": "jest --runInBand --detectOpenHandles --bail --coverage"
},
"dependencies": {
"@connext/contracts": "1.0.1",
"@connext/types": "4.0.2",
"@connext/contracts": "1.0.2",
"@connext/types": "4.0.4",
"ethers": "4.0.41",
"eventemitter3": "4.0.0",
"loglevel": "1.6.6",
Expand Down
15 changes: 5 additions & 10 deletions modules/cf-core/src/contracts.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import ChallengeRegistry from "@connext/contracts/build/ChallengeRegistry.json";
import CounterfactualApp from "@connext/contracts/build/CounterfactualApp.json";
import ConditionalTransactionDelegateTarget from "@connext/contracts/build/ConditionalTransactionDelegateTarget.json";
import ERC20 from "@connext/contracts/build/ERC20.json";
import MinimumViableMultisig from "@connext/contracts/build/MinimumViableMultisig.json";
import ProxyFactory from "@connext/contracts/build/ProxyFactory.json";

export {
addressBook,
addressHistory,
ChallengeRegistry,
CounterfactualApp,
ConditionalTransactionDelegateTarget,
CounterfactualApp,
ERC20,
MinimumViableMultisig,
ProxyFactory
};
ProxyFactory,
} from "@connext/contracts";
3 changes: 1 addition & 2 deletions modules/cf-core/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { CriticalStateChannelAddresses } from "@connext/types";
import { addressBook, addressHistory } from "@connext/contracts";
import { Contract } from "ethers";
import { Provider } from "ethers/providers";
import {
Expand All @@ -16,7 +15,7 @@ import {
import { fromExtendedKey } from "ethers/utils/hdnode";

import { JSON_STRINGIFY_SPACE } from "./constants";
import { MinimumViableMultisig, ProxyFactory } from "./contracts";
import { addressBook, addressHistory, MinimumViableMultisig, ProxyFactory } from "./contracts";

export function getFirstElementInListNotEqualTo(test: string, list: string[]) {
return list.filter(x => x !== test)[0];
Expand Down
10 changes: 5 additions & 5 deletions modules/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@connext/client",
"version": "4.0.2",
"version": "4.0.4",
"description": "Client for Connext Network",
"main": "dist/index.js",
"files": [
Expand All @@ -16,10 +16,10 @@
"test": "./node_modules/.bin/jest"
},
"dependencies": {
"@connext/cf-core": "4.0.2",
"@connext/messaging": "4.0.2",
"@connext/store": "4.0.2",
"@connext/types": "4.0.2",
"@connext/cf-core": "4.0.4",
"@connext/messaging": "4.0.4",
"@connext/store": "4.0.4",
"@connext/types": "4.0.4",
"core-js": "3.6.1",
"eccrypto": "1.1.3",
"ethers": "4.0.41",
Expand Down
5 changes: 5 additions & 0 deletions modules/contracts/address-book.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@
"address": "0x40cd4292438642bAc4b5733ED4ec45509bf164Bb",
"bytecode": "0x401c9743f9b231490322bcca4301d75e5d0b39745d9fc8b90f8cd5b779852225",
"txHash": "0x4bdba42fa5cc00add4b0774e2a4154b31207dc8d0a26d7f16e3fbd1e30cd9243"
},
"Token": {
"address": "0xc5f89a4DfB8947F90f79E3d34EC05C07B7E64265",
"bytecode": "0xf97398131762b89df0289198fa30b8da8776d0afc8662aefc397a0b6b31ceb44",
"txHash": "0x3217505ee0b45b53dd492272f683d8ed68fe9453c36dc612bd1dd3c356c08afb"
}
},
"4447": {
Expand Down
14 changes: 3 additions & 11 deletions modules/contracts/ops/migrate-contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,8 @@ const sendGift = async (address, token) => {

// Sanity check: Is our eth provider serving us the correct network?
const net = process.env.ETH_NETWORK;
if (((net === `mainnet` || net === `live`) && chainId === 1) ||
(net === `ropsten` && chainId === 3) ||
((net === `rinkeby` || net === `staging`) && chainId === 4) ||
(net === `kovan` && chainId === 42) ||
(net === `ganache` && chainId === ganacheId)) {
console.log(`\nPreparing to migrate contracts to ${net} network (${chainId})`);
console.log(`Deployer Wallet: address=${wallet.address} nonce=${nonce} balance=${balance}`);
} else {
console.error(`Warning: given network (${net}) doesn't match the network ID from provider: ${chainId}`);
}
console.log(`\nPreparing to migrate contracts to ${net} network (${chainId})`);
console.log(`Deployer Wallet: address=${wallet.address} nonce=${nonce} balance=${balance}`);

////////////////////////////////////////
// Deploy contracts
Expand All @@ -194,7 +186,7 @@ const sendGift = async (address, token) => {
}

// If this network has not token yet, deploy one
if (!getSavedData(`Token`, `address`)) {
if (chainId === ganacheId || !getSavedData(`Token`, `address`)) {
token = await deployContract(`Token`, tokenArtifacts, []);
}

Expand Down
4 changes: 2 additions & 2 deletions modules/contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@connext/contracts",
"version": "1.0.1",
"version": "1.0.2",
"description": "Smart contracts that power a Counterfactual State Channel platform",
"license": "ISC",
"files": ["address-book.json", "address-history.json", "build", "contracts", "index.ts"],
Expand All @@ -13,7 +13,7 @@
"lint-sol": "solium -d ."
},
"dependencies": {
"@connext/types": "4.0.2",
"@connext/types": "4.0.4",
"ethers": "4.0.41",
"ganache-cli": "6.7.0",
"openzeppelin-solidity": "2.3.0"
Expand Down
8 changes: 4 additions & 4 deletions modules/daicard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"format": "prettier --write \"src/**/*.js\""
},
"dependencies": {
"@connext/client": "4.0.2",
"@connext/store": "4.0.2",
"@connext/types": "4.0.2",
"@connext/client": "4.0.4",
"@connext/store": "4.0.4",
"@connext/types": "4.0.4",
"@material-ui/core": "4.8.2",
"@material-ui/icons": "4.5.1",
"@walletconnect/browser": "1.0.0-beta.41",
Expand All @@ -41,7 +41,7 @@
"xstate": "4.7.5"
},
"devDependencies": {
"@connext/types": "4.0.2",
"@connext/types": "4.0.4",
"bn.js": "5.1.1",
"chai-bn": "0.2.0"
},
Expand Down
7 changes: 3 additions & 4 deletions modules/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
"eject": "react-scripts eject"
},
"dependencies": {
"@connext/cf-core": "4.0.2",
"@connext/contracts": "1.0.1",
"@connext/messaging": "4.0.2",
"@connext/types": "4.0.2",
"@connext/cf-core": "4.0.4",
"@connext/messaging": "4.0.4",
"@connext/types": "4.0.4",
"@material-ui/core": "4.8.2",
"@material-ui/icons": "4.5.1",
"react": "16.12.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { scanForCriticalAddresses } from "@connext/cf-core";
import { addressHistory } from "@connext/contracts";
import { getDefaultProvider } from "ethers";
import React, { useState } from "react";
import Button from "@material-ui/core/Button";
Expand Down
4 changes: 2 additions & 2 deletions modules/messaging/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@connext/messaging",
"description": "Messaging module for Connext client",
"version": "4.0.2",
"version": "4.0.4",
"main": "dist/index.js",
"iife": "dist/index.iife.js",
"types": "dist/index.d.ts",
Expand All @@ -16,7 +16,7 @@
"prepare": "npm run build"
},
"dependencies": {
"@connext/types": "4.0.2",
"@connext/types": "4.0.4",
"ts-nats": "1.2.4",
"websocket-nats": "0.3.3"
},
Expand Down
12 changes: 6 additions & 6 deletions modules/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "indra-node",
"version": "4.0.2",
"version": "4.0.4",
"description": "",
"author": "",
"license": "MIT",
Expand All @@ -21,10 +21,10 @@
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand"
},
"dependencies": {
"@connext/cf-core": "4.0.2",
"@connext/contracts": "1.0.1",
"@connext/messaging": "4.0.2",
"@connext/types": "4.0.2",
"@connext/cf-core": "4.0.4",
"@connext/contracts": "1.0.2",
"@connext/messaging": "4.0.4",
"@connext/types": "4.0.4",
"@nestjs/common": "6.5.3",
"@nestjs/core": "6.5.3",
"@nestjs/microservices": "6.5.3",
Expand All @@ -45,7 +45,7 @@
"uuid": "3.3.3"
},
"devDependencies": {
"@connext/client": "4.0.2",
"@connext/client": "4.0.4",
"@nestjs/testing": "6.5.3",
"@types/express": "4.17.2",
"@types/jest": "24.0.25",
Expand Down
6 changes: 3 additions & 3 deletions modules/payment-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"author": "",
"license": "MIT",
"dependencies": {
"@connext/client": "4.0.2",
"@connext/store": "4.0.2",
"@connext/types": "4.0.2",
"@connext/client": "4.0.4",
"@connext/store": "4.0.4",
"@connext/types": "4.0.4",
"commander": "4.0.1",
"dotenv": "8.2.0",
"ethers": "4.0.41",
Expand Down
4 changes: 2 additions & 2 deletions modules/store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@connext/store",
"version": "4.0.2",
"version": "4.0.4",
"description": "Store module for Connext client",
"main": "dist/index.js",
"files": [
Expand All @@ -16,7 +16,7 @@
"test": "./node_modules/.bin/jest"
},
"dependencies": {
"@connext/types": "4.0.2",
"@connext/types": "4.0.4",
"ethers": "4.0.41",
"pisa-client": "0.1.4-connext-beta.1",
"uuid": "3.3.3"
Expand Down
12 changes: 6 additions & 6 deletions modules/test-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"author": "",
"license": "ISC",
"dependencies": {
"@connext/cf-core": "4.0.2",
"@connext/client": "4.0.2",
"@connext/contracts": "1.0.1",
"@connext/messaging": "4.0.2",
"@connext/store": "4.0.2",
"@connext/types": "4.0.2",
"@connext/cf-core": "4.0.4",
"@connext/client": "4.0.4",
"@connext/contracts": "1.0.2",
"@connext/messaging": "4.0.4",
"@connext/store": "4.0.4",
"@connext/types": "4.0.4",
"core-js": "3.6.1",
"chai": "4.2.0",
"chai-as-promised": "7.1.1",
Expand Down
2 changes: 1 addition & 1 deletion modules/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@connext/types",
"version": "4.0.2",
"version": "4.0.4",
"description": "TypeScript typings for common Connext types",
"main": "dist/index.js",
"module": "dist/index.esm.js",
Expand Down
2 changes: 2 additions & 0 deletions ops/start-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ if [[ "$chainId" == "1" ]]
then eth_network_name="mainnet"
elif [[ "$chainId" == "4" ]]
then eth_network_name="rinkeby"
elif [[ "$chainId" == "6" ]]
then eth_network_name="kotti"
elif [[ "$chainId" == "42" ]]
then eth_network_name="kovan"
elif [[ "$chainId" == "$ganache_chain_id" ]]
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "indra",
"version": "4.0.2",
"version": "4.0.4",
"description": "",
"repository": {
"type": "git",
Expand Down

0 comments on commit 115d08d

Please sign in to comment.