Skip to content

Commit

Permalink
modify to beta3 rinkeby
Browse files Browse the repository at this point in the history
  • Loading branch information
iwbrhwfy committed Oct 24, 2019
1 parent 6a26ba1 commit 104efad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 37 deletions.
8 changes: 4 additions & 4 deletions packages/lightcone_v3.js/src/lib/wallet/config/config.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"defaultGasPrice": 21,
"defaultGasLimit": "0x7a120",
"chainId": 1,
"chainId": 4,
"exchangeId": 1,
"label": 211,
"fee": "0.01",
"feeToken": "ETH",
"maxFeeBips": 20,
"exchangeAddress": "0x35990C74eB567B3bbEfD2Aa480467b1031b23eD9",
"exchangeAddress": "0xe3fdE0D3A8D62c2F8892187483D1b4ede779008F",
"maxAmount": "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF",
"txs": [
{
Expand Down Expand Up @@ -104,7 +104,7 @@
"symbol": "WETH",
"name": "Wrapped Ether",
"digits": 18,
"address": "0x97241525fe425C90eBe5A41127816dcFA5954b06",
"address": "0x185c658fE3F202cA5D9ba096dB1dA4EB41aC70bA",
"unit": "WETH",
"website": "https://weth.io",
"allowance": "1000000000000000000000",
Expand All @@ -117,7 +117,7 @@
"symbol": "LRC",
"name": "Loopring",
"digits": 18,
"address": "0xCa66Ffaf17e4B600563f6af032456AA7B05a6975",
"address": "0xd4E71C4bb48850f5971cE40Aa428b09F242D3e8a",
"unit": "LRC",
"website": "https://loopring.org",
"allowance": "1000000000000000000000",
Expand Down
34 changes: 1 addition & 33 deletions packages/lightcone_v3.js/test/testConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("config test", function() {
before(async () => {});

it("config value", function(done) {
assert.strictEqual(config.getChainId(), 1);
assert.strictEqual(config.getChainId(), 4);
assert.strictEqual(config.getMaxFeeBips(), 20);

let tokens = config.getTokens();
Expand All @@ -32,38 +32,6 @@ describe("config test", function() {
assert.strictEqual(eth.precision, 6);
assert.strictEqual(eth.minTradeValue, 0.001);

// WETH
let weth = config.getTokenBySymbol("WETH");
assert.strictEqual(weth.symbol, "WETH");
assert.strictEqual(weth.name, "Wrapped Ether");
assert.strictEqual(weth.digits, 18);
assert.strictEqual(
weth.address,
"0x97241525fe425C90eBe5A41127816dcFA5954b06"
);
assert.strictEqual(weth.unit, "WETH");
assert.strictEqual(weth.website, "https://weth.io");
assert.strictEqual(weth.allowance, "1000000000000000000000");
assert.strictEqual(weth.allowanceWarn, "100000000000000000000");
assert.strictEqual(weth.precision, 6);
assert.strictEqual(weth.minTradeValue, 0.001);

// LRC
let lrc = config.getTokenBySymbol("LRC");
assert.strictEqual(lrc.symbol, "LRC");
assert.strictEqual(lrc.name, "Loopring");
assert.strictEqual(lrc.digits, 18);
assert.strictEqual(
lrc.address,
"0xCa66Ffaf17e4B600563f6af032456AA7B05a6975"
);
assert.strictEqual(lrc.unit, "LRC");
assert.strictEqual(lrc.website, "https://loopring.org");
assert.strictEqual(lrc.allowance, "1000000000000000000000");
assert.strictEqual(lrc.allowanceWarn, "50000000000000000000");
assert.strictEqual(lrc.precision, 6);
assert.strictEqual(lrc.minTradeValue, 0.001);

let markets = config.getMarkets();
assert.strictEqual(markets.length, 2);
let market = config.getMarketBySymbol("LRC", "ETH");
Expand Down

0 comments on commit 104efad

Please sign in to comment.