Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
Broadcaster implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeychr committed Dec 19, 2023
1 parent 578b25a commit bbd4c2b
Show file tree
Hide file tree
Showing 34 changed files with 5,313 additions and 2,478 deletions.
33 changes: 33 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,38 @@ module.exports = {
'LabeledStatement',
'WithStatement',
],

'max-classes-per-file': 'off',
},
overrides: [{
files: ["*.test.ts"],
rules: {
// allow console for tests
'no-console': 'off',

// tests may do more
'no-await-in-loop': 'off',

// disable this rule because specs often call `it(async () => {})` within loops
'@typescript-eslint/no-loop-func': 'off',

// disable this rule because specs should not be necessary strict, they don't have
// security impact
'default-case': 'off',

// disable this rule because specs often use helper functions defined in the bottom of a file
'@typescript-eslint/no-use-before-define': 'off',

// disable this rule because specs use unnamed function(){}s for grouping
'func-names': 'off',

// for interface compatibility
'@typescript-eslint/no-unused-vars': [
"error",
{
"argsIgnorePattern": "^_",
}
]
},
}]
};
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,18 @@ node_modules
# safety
.env
executor*.config.ts

node_modules
.env

# Hardhat files
/cache
/artifacts

# TypeChain files
/typechain
/typechain-types

# solidity-coverage files
/coverage
/coverage.json
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
- [Smart contract addresses](#smart-contract-addresses)
- [Miscellaneous](#miscellaneous)
- [Disable OP Horizon campaign](#disable-op-horizon-campaign)
- [Fine-tuning](#fine-tuning)
- [Development](#development)

## TL;DR

Expand Down Expand Up @@ -350,4 +352,12 @@ The DLN smart contracts deployed across supported chains which are used to run t

### Disable OP Horizon campaign

Orders coming from/to Optimism participate in the OP Horizon campaign, which rebates expenses and taker's profits in the OP token. To get out of the campaign, use the `DISABLE_OP_HORIZON_CAMPAIGN` env variable set to `true`.
Orders coming from/to Optimism participate in the OP Horizon campaign, which rebates expenses and taker's profits in the OP token. To get out of the campaign, use the `DISABLE_OP_HORIZON_CAMPAIGN` env variable set to `true`.

### Fine-tuning

Several kernel-related parameters can be fine-tuned using environment variables.

### Development
- `DLN_TAKER_LOCAL_MODE` enable optimizations for development
- `EVM_BROADCAST_IMMEDIATE_POLL`
10 changes: 10 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { HardhatUserConfig } from "hardhat/config";
import "@nomiclabs/hardhat-web3";
import "@nomicfoundation/hardhat-chai-matchers"
import "@nomicfoundation/hardhat-ethers"

const config: HardhatUserConfig = {
solidity: "0.8.19",
// defaultNetwork: 'localhost'
};
export default config;
Loading

0 comments on commit bbd4c2b

Please sign in to comment.