-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
130 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
commonjs: true, | ||
es6: true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"root": false, | ||
"extends": ["../../.eslintrc.js"], | ||
"parserOptions": { | ||
"files": ["src/**/*.ts", "src/**/*.js"] | ||
}, | ||
"ignorePatterns": ["dist/**/*", "node_modules/**/*"] | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const baseConfig = require('../../.prettierrc.js') | ||
|
||
module.exports = { | ||
...baseConfig, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"name": "@arbitrum/sdk", | ||
"version": "4.0.2", | ||
"description": "Typescript library client-side interactions with Arbitrum", | ||
"author": "Offchain Labs, Inc.", | ||
"license": "Apache-2.0", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/offchainlabs/arbitrum-sdk.git" | ||
}, | ||
"engines": { | ||
"node": ">=v11", | ||
"npm": "please-use-yarn", | ||
"yarn": ">= 1.0.0" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/offchainlabs/arbitrum-sdk/issues" | ||
}, | ||
"homepage": "https://offchainlabs.com", | ||
"files": [ | ||
"dist/**/*" | ||
], | ||
"scripts": { | ||
"audit:ci": "audit-ci --config ./audit-ci.jsonc", | ||
"prepare": "yarn run gen:abi", | ||
"gen:abi": "node ./scripts/genAbi.js", | ||
"gen:network": "ts-node ./scripts/genNetwork.ts", | ||
"prepublishOnly": "yarn build && yarn format", | ||
"preversion": "yarn lint", | ||
"prebuild": "yarn gen:abi", | ||
"build": "./scripts/builder", | ||
"watch": "tsc --watch", | ||
"test": "mocha", | ||
"test:coverage": "nyc mocha", | ||
"test:fork": "SHOULD_FORK=1 hardhat test tests/fork/*.test.ts", | ||
"test:integration": "mocha tests/integration/ --timeout 30000000 --bail", | ||
"test:unit": "mocha --parallel tests/unit/ --timeout 30000 --bail", | ||
"test:ci": "nyc --reporter=lcovonly mocha --reporter xunit", | ||
"lint": "eslint .", | ||
"format": "prettier './**/*.{js,json,md,ts,yml}' '!./src/lib/abi' --write && yarn run lint --fix", | ||
"clean:compile": "ts-node scripts/cleanCompileContracts.ts", | ||
"checkRetryable": "ts-node scripts/checkRetryableStatus.ts", | ||
"redeemRetryable": "ts-node scripts/redeemRetryable.ts", | ||
"setStandard": "ts-node scripts/setStandardGateways.ts", | ||
"setCustom": "ts-node scripts/setArbCustomGateways.ts", | ||
"cancelRetryable": "ts-node scripts/cancelRetryable.ts", | ||
"bridgeStandardToken": "ts-node scripts/deployStandard.ts" | ||
}, | ||
"dependencies": { | ||
"@ethersproject/address": "^5.0.8", | ||
"@ethersproject/bignumber": "^5.1.1", | ||
"@ethersproject/bytes": "^5.0.8", | ||
"async-mutex": "^0.4.0", | ||
"ethers": "^5.1.0" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions
5
scripts/deployStandard.ts → packages/sdk/scripts/deployStandard.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import * as dotenv from 'dotenv' | ||
import * as path from 'path' | ||
|
||
export const loadEnv = () => { | ||
dotenv.config({ path: path.resolve(__dirname, '../../../../../.env') }) | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...itrumNetworkInformationFromRollup.test.ts → ...itrumNetworkInformationFromRollup.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./dist" | ||
}, | ||
"include": ["src/**/*.ts", "src/**/*.d.ts"], | ||
"exclude": ["node_modules", "dist", "tests", "scripts"] | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters