Skip to content

Commit b2da67f

Browse files
andrevmatosweilbith
authored andcommitted
chore: add Arbitrum-One embedded deployment.json files
1 parent b614609 commit b2da67f

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

raiden-ts/scripts/versions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const cwd = path.dirname(fs.realpathSync(__filename));
55

66
// Get the smart contract version from the `raiden-contracts`
77
// sub module.
8-
const contracts_version = '1.0.0';
8+
const contracts_version = '0.50.1';
99
// TODO: Enable when https://github.com/raiden-network/raiden-contracts/issues/1287 done
1010
/*
1111
const { contracts_version } = require(path.join(

raiden-ts/src/helpers.ts

+5
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ import {
5555
putRaidenState,
5656
replaceDatabase,
5757
} from './db/utils';
58+
import arbitrumOneDeploy from './deployment/deployment_arbitrum-one.json';
5859
import goerliDeploy from './deployment/deployment_goerli_unstable.json';
5960
import rinkebyArbitrumDeploy from './deployment/deployment_rinkeby-arbitrum.json';
61+
import arbitrumOneServicesDeploy from './deployment/deployment_services_arbitrum-one.json';
6062
import goerliServicesDeploy from './deployment/deployment_services_goerli_unstable.json';
6163
import rinkebyArbitrumServicesDeploy from './deployment/deployment_services_rinkeby-arbitrum.json';
6264
import { makeInitialState, RaidenState } from './state';
@@ -95,6 +97,9 @@ function getContracts(network: Network): ContractsInfo {
9597
case 'arbitrum-rinkeby':
9698
info = { ...rinkebyArbitrumDeploy.contracts, ...rinkebyArbitrumServicesDeploy.contracts };
9799
break;
100+
case 'arbitrum':
101+
info = { ...arbitrumOneDeploy.contracts, ...arbitrumOneServicesDeploy.contracts };
102+
break;
98103
case 'goerli':
99104
info = { ...goerliDeploy.contracts, ...goerliServicesDeploy.contracts };
100105
break;

raiden-ts/src/utils/ethers.ts

+3
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ export function getNetworkName(network: Network) {
321321
case 'arbitrum-rinkeby':
322322
name = 'rinkeby-arbitrum';
323323
break;
324+
case 'arbitrum':
325+
name = 'arbitrum-one';
326+
break;
324327
case 'unknown':
325328
name = network.chainId.toString();
326329
break;

0 commit comments

Comments
 (0)