-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: switch to v4 API --------- Co-Authored-By: Oliver Wang <[email protected]> Co-Authored-By: Dhruba Basu <[email protected]> Co-Authored-By: Danny Fenstermaker <[email protected]> Co-Authored-By: Emre Kanatli <[email protected]> Co-Authored-By: rictorlome <[email protected]> Co-Authored-By: nahoc <[email protected]> Co-Authored-By: Fumiko Richards <[email protected]> Co-Authored-By: Ray Lin <[email protected]> Co-Authored-By: Neocyber <[email protected]> Co-Authored-By: Gabriel Cardona <[email protected]> Co-Authored-By: Gergely Lovas <[email protected]>
- Loading branch information
1 parent
2435d87
commit 39d652e
Showing
679 changed files
with
19,981 additions
and
55,172 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
AVAX_PUBLIC_URL="https://api.avax-test.network" | ||
|
||
PRIVATE_KEY=... | ||
C_CHAIN_ADDRESS=0x... | ||
X_CHAIN_ADDRESS=X-fuji... | ||
P_CHAIN_ADDRESS=P-fuji... | ||
CORETH_ADDRESS=C-fuji... |
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,5 +1 @@ | ||
/**/*.js | ||
/typings/* | ||
/tests/* | ||
/examples/* | ||
/web/* | ||
dist |
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,34 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
node: true, | ||
}, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier', | ||
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. | ||
], | ||
parser: '@typescript-eslint/parser', | ||
settings: {}, | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: 12, | ||
sourceType: 'module', | ||
// TODO: Why does uncommenting this remove the type imports? | ||
// project: ['./tsconfig.json'], | ||
}, | ||
plugins: ['@typescript-eslint'], | ||
rules: { | ||
'@typescript-eslint/consistent-type-imports': 'error', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-var-requires': 'error', | ||
// Uncomment prefer-readonly and parserOptions.project to apply the rule. | ||
// TODO: Uncomment both permanently after fixing the type import issue. | ||
// '@typescript-eslint/prefer-readonly': 'error', | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
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,7 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
target-branch: "development" | ||
interval: weekly | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: weekly |
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,25 +1,30 @@ | ||
name: CI | ||
name: PR checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
env: | ||
CI: true | ||
|
||
jobs: | ||
Test: | ||
Lint-build-test: | ||
name: Lint, build and test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [16] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: yarn | ||
node-version: ${{ matrix.node-version }} | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn test | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Lint | ||
run: yarn lint:check | ||
- name: Typecheck | ||
run: yarn typecheck | ||
- name: Test | ||
run: yarn test | ||
- name: Build | ||
run: yarn build |
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 was deleted.
Oops, something went wrong.
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,28 @@ | ||
name: Prerelease | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
release: | ||
name: Prerelease | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
- name: Install dependencies | ||
run: yarn | ||
- name: Build library | ||
run: yarn build:prod | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
run: yarn run semantic-release |
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,32 +1,33 @@ | ||
name: Push to release branch | ||
|
||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- release | ||
- master | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
environment: production | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16.x | ||
- name: Create .npmrc | ||
run: echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' >> .npmrc | ||
node-version: 20.x | ||
- name: Install dependencies | ||
run: yarn install | ||
run: yarn | ||
- name: Build library | ||
run: yarn build | ||
run: yarn build:prod | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELEASE_BRANCH: release | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
run: yarn run semantic-release | ||
- name: Rebase master | ||
run: | | ||
git checkout master && | ||
git rebase release && | ||
git push origin master |
Oops, something went wrong.