Skip to content

Commit

Permalink
chore: add Arbitrum-One embedded deployment.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
andrevmatos authored and weilbith committed May 2, 2022
1 parent b614609 commit b2da67f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion raiden-ts/scripts/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const cwd = path.dirname(fs.realpathSync(__filename));

// Get the smart contract version from the `raiden-contracts`
// sub module.
const contracts_version = '1.0.0';
const contracts_version = '0.50.1';
// TODO: Enable when https://github.com/raiden-network/raiden-contracts/issues/1287 done
/*
const { contracts_version } = require(path.join(
Expand Down
5 changes: 5 additions & 0 deletions raiden-ts/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ import {
putRaidenState,
replaceDatabase,
} from './db/utils';
import arbitrumOneDeploy from './deployment/deployment_arbitrum-one.json';
import goerliDeploy from './deployment/deployment_goerli_unstable.json';
import rinkebyArbitrumDeploy from './deployment/deployment_rinkeby-arbitrum.json';
import arbitrumOneServicesDeploy from './deployment/deployment_services_arbitrum-one.json';
import goerliServicesDeploy from './deployment/deployment_services_goerli_unstable.json';
import rinkebyArbitrumServicesDeploy from './deployment/deployment_services_rinkeby-arbitrum.json';
import { makeInitialState, RaidenState } from './state';
Expand Down Expand Up @@ -95,6 +97,9 @@ function getContracts(network: Network): ContractsInfo {
case 'arbitrum-rinkeby':
info = { ...rinkebyArbitrumDeploy.contracts, ...rinkebyArbitrumServicesDeploy.contracts };
break;
case 'arbitrum':
info = { ...arbitrumOneDeploy.contracts, ...arbitrumOneServicesDeploy.contracts };
break;
case 'goerli':
info = { ...goerliDeploy.contracts, ...goerliServicesDeploy.contracts };
break;
Expand Down
3 changes: 3 additions & 0 deletions raiden-ts/src/utils/ethers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ export function getNetworkName(network: Network) {
case 'arbitrum-rinkeby':
name = 'rinkeby-arbitrum';
break;
case 'arbitrum':
name = 'arbitrum-one';
break;
case 'unknown':
name = network.chainId.toString();
break;
Expand Down

0 comments on commit b2da67f

Please sign in to comment.