-
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.
* atomicTx decoder * update readme file * rest of changes * fix mistakes * fix mistakes 2 * add yarn.lock and package.json * add bech32 encoder & decoder * add comments * add error handling + fix stuff * throw error * admin examples * auth examples * avm examples * bintools examples * evm examples * hdnode examples * health examples * index examples * info examples * keystore examples * metrics examples * mnemonic examples * platformvm examples * pubsub * socket examples * readme file * import from src * add env file + dependencies * add env variables to examples * rest of examples * add indexer api to env and examples * modify admin examples to use localhost * modify auth examples to use localhost * change type for host * modify some addresses and tx ids for avm examples * use localhost for health api * use localhost for keystore apis * use localhost for metrics apis * add comments to env * change order env file * Add decoder for blockExtraData * remove useless stuff * Add deoder * feat: switch to v4 (#802) * feat: switch to v4 * ci: add codeql analysis BREAKING CHANGE: switch to new API * feat!: bump to 4.0.0 (#810) BREAKING CHANGE: switch to v4 API * ci: add prererelease flow --------- Co-authored-by: Lavinia Talpas <[email protected]> Co-authored-by: Danny Fenstermaker <[email protected]>
- Loading branch information
1 parent
2435d87
commit 4564c18
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.