df8039f494
new file: Interchain-message/.eslintrc.js new file: Interchain-message/.gitignore new file: Interchain-message/.prettierrc new file: Interchain-message/.solhint.json new file: Interchain-message/.solhintignore new file: Interchain-message/contracts/interfaces/IBridge.sol new file: Interchain-message/contracts/interfaces/IMessageBus.sol new file: Interchain-message/contracts/interfaces/IMessageReceiverApp.sol new file: Interchain-message/contracts/interfaces/IUniswapRouterV3.sol new file: Interchain-message/contracts/interfaces/IWETH.sol new file: Interchain-message/contracts/message/apps/BridgeSwap.sol new file: Interchain-message/contracts/message/apps/RubicRouterV2.sol new file: Interchain-message/contracts/message/apps/RubicRouterV2ETH.sol new file: Interchain-message/contracts/message/apps/SwapBase.sol new file: Interchain-message/contracts/message/apps/TransferSwapInch.sol new file: Interchain-message/contracts/message/apps/TransferSwapV2.sol new file: Interchain-message/contracts/message/apps/TransferSwapV3.sol new file: Interchain-message/contracts/message/framework/MessageReceiverApp.sol new file: Interchain-message/contracts/message/framework/MessageSenderApp.sol new file: Interchain-message/contracts/message/libraries/MessageSenderLib.sol new file: Interchain-message/contracts/message/libraries/MsgDataTypes.sol new file: Interchain-message/contracts/test/MessageBusSender.sol new file: Interchain-message/contracts/test/TestERC20.sol new file: Interchain-message/contracts/test/TestMessages.sol new file: Interchain-message/contracts/test/WETH9.sol new file: Interchain-message/deployments/Readme.md new file: Interchain-message/executor/config/cbridge.toml new file: Interchain-message/executor/config/executor.toml new file: Interchain-message/executor/eth-ks/signer.json new file: Interchain-message/hardhat.config.ts new file: Interchain-message/package-lock.json new file: Interchain-message/package.json new file: Interchain-message/reports/contract_sizes.txt new file: Interchain-message/reports/gas_usage/summary.txt new file: Interchain-message/scripts/deploy/deploy.js new file: Interchain-message/scripts/deploy/deployAVAX.ts new file: Interchain-message/scripts/deploy/deployArbitrum.ts new file: Interchain-message/scripts/deploy/deployAurora.ts new file: Interchain-message/scripts/deploy/deployBSC.ts new file: Interchain-message/scripts/deploy/deployEth.ts new file: Interchain-message/scripts/deploy/deployFantom.ts new file: Interchain-message/scripts/deploy/deployPoly.ts new file: Interchain-message/scripts/privateKey.js new file: Interchain-message/scripts/sendTx/avaxToFantomBridge.js new file: Interchain-message/scripts/sendTx/avaxToFantomNativeV2.js new file: Interchain-message/test/RubicCrossChainBridge.spec.ts new file: Interchain-message/test/RubicCrossChainV2.spec.ts new file: Interchain-message/test/RubicCrossChainV3.spec.ts new file: Interchain-message/test/RubicFallback.spec.ts new file: Interchain-message/test/RubicSettings.spec.ts new file: Interchain-message/test/shared/consts.ts new file: Interchain-message/test/shared/fixtures.ts new file: Interchain-message/test/shared/utils.ts new file: Interchain-message/tsconfig.json deleted: Rubic-Inter-chain-Message-develop.zip deleted: proxy-instant-trades-master.zip deleted: rubic-app-master.zip deleted: rubic-sdk-master.zip
95 lines
3.4 KiB
JavaScript
95 lines
3.4 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
overrides: [
|
|
{
|
|
files: ['test/**/*.ts', 'scripts/**/*.ts'],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
project: './tsconfig.json',
|
|
tsconfigRootDir: __dirname,
|
|
createDefaultProgram: true
|
|
},
|
|
plugins: [
|
|
'@typescript-eslint',
|
|
'unused-imports',
|
|
'import'
|
|
],
|
|
extends: [
|
|
'airbnb-typescript/base',
|
|
'plugin:prettier/recommended',
|
|
'prettier'
|
|
],
|
|
rules: {
|
|
'import/prefer-default-export': 'off',
|
|
'@typescript-eslint/no-useless-constructor': 'off',
|
|
'no-plusplus': 'off',
|
|
'class-method-use-this': 'off',
|
|
'no-underscore-dangle': 'off',
|
|
'no-inferrable-types': 'off',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{
|
|
vars: 'all',
|
|
args: 'all',
|
|
ignoreRestSiblings: false,
|
|
argsIgnorePattern: '^_'
|
|
}
|
|
],
|
|
'@typescript-eslint/no-inferrable-types': 'off',
|
|
'class-methods-use-this': 'off',
|
|
complexity: ['error', 20],
|
|
eqeqeq: ['error', 'always'],
|
|
'no-magic-numbers': 'off',
|
|
'@typescript-eslint/no-magic-numbers': [
|
|
'warn',
|
|
{
|
|
ignore: [-1, 0, 1, 2, 10, 100, 1000, 16, 64, 256],
|
|
detectObjects: true,
|
|
ignoreReadonlyClassProperties: true
|
|
}
|
|
],
|
|
'@typescript-eslint/naming-convention': [
|
|
'error',
|
|
{
|
|
selector: 'enumMember',
|
|
format: ['UPPER_CASE']
|
|
}
|
|
],
|
|
'no-empty': ['error', { 'allowEmptyCatch': true }],
|
|
// Styling.
|
|
'array-bracket-spacing': ['error', 'never'],
|
|
'object-curly-spacing': ['error', 'always'],
|
|
indent: 'off',
|
|
'comma-dangle': 'off',
|
|
'@typescript-eslint/comma-dangle': ['error', 'never'],
|
|
// Temporary rules. Remove after full refactoring.
|
|
'import/no-extraneous-dependencies': 'off',
|
|
'@typescript-eslint/dot-notation': 'off',
|
|
'no-restricted-globals': 'off',
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
'no-param-reassign': 'off',
|
|
// Temporary rules. Remove as fast as it can be.
|
|
'max-classes-per-file': 'off',
|
|
radix: ['warn', 'as-needed'],
|
|
'no-prototype-builtins': 'off',
|
|
'no-return-assign': 'off',
|
|
'no-restricted-syntax': [
|
|
'error',
|
|
'LabeledStatement',
|
|
'WithStatement'
|
|
],
|
|
'no-console': [
|
|
'warn',
|
|
{
|
|
allow: ['debug', 'error', 'info']
|
|
}
|
|
],
|
|
'import/export': 0
|
|
}
|
|
}
|
|
],
|
|
env: {
|
|
"es6": true
|
|
},
|
|
};
|