Skip to content

Commit

Permalink
Merge pull request #6 from ZelCore-io/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
stultusmundi authored Dec 19, 2024
2 parents 1240315 + e1cb457 commit bee9c78
Show file tree
Hide file tree
Showing 1,421 changed files with 35,353 additions and 13,138 deletions.
8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

21 changes: 0 additions & 21 deletions .eslintrc.js

This file was deleted.

20 changes: 14 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,38 @@ on:
- dev
pull_request:

env:
node_version: 16

jobs:
Test:
runs-on: ${{ matrix.os }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_READONLY }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest]
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: yarn
node-version: ${{ env.node_version }}
node-version: ${{ matrix.node-version }}
- run: echo '//registry.npmjs.org/:_authToken= ${{ secrets.NPM_TOKEN_READONLY }}' >> .npmrc
- run: yarn --frozen-lockfile --network-timeout 1000000
- run: yarn test --ci --coverage --maxWorkers=2
Lint:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_READONLY }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: yarn
node-version: ${{ env.node_version }}
node-version: ${{ matrix.node-version }}
- run: echo '//registry.npmjs.org/:_authToken= ${{ secrets.NPM_TOKEN_READONLY }}' >> .npmrc
- run: yarn --frozen-lockfile
- run: yarn lint
33 changes: 33 additions & 0 deletions .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release dev branch (alpha)
on:
push:
branches:
- dev
jobs:
release:
name: Release Dev Branch
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
cache: yarn
node-version: 18.x
- name: add .npmrc
run: echo '//registry.npmjs.org/:_authToken= ${{ secrets.NPM_TOKEN_READONLY }}' >> .npmrc
- name: Install dependencies
run: yarn install
- name: add publishing .npmrc
run: echo '//registry.npmjs.org/:_authToken= ${{ secrets.NPM_TOKEN }}' >> .npmrc
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_BRANCH: dev
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn run semantic-release
35 changes: 35 additions & 0 deletions .github/workflows/master-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release master branch
on:
push:
branches:
- master
jobs:
release:
name: Release Master Branch
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: add .npmrc
run: echo '//registry.npmjs.org/:_authToken= ${{ secrets.NPM_TOKEN_READONLY }}' >> .npmrc
- name: Install dependencies
run: yarn install
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_BRANCH: master
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn run semantic-release
- name: Rebase dev branch
run: |
git checkout dev &&
git rebase master &&
git push origin dev
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ build/Release
# Dependency directories
node_modules/
jspm_packages/
dist/

# TypeScript v1 declaration files
typings/
Expand Down Expand Up @@ -114,4 +113,4 @@ public/
TODO.md

test_app

yarn.lock
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

# Avalanche Wallet SDK (Beta)

Avalanche wallet SDK is a typescript library for creating and managing decentralized wallets.
Avalanche Wallet SDK is a Typescript library for creating and managing decentralized wallets.

It provides high level methods to transact on Avalanche's primary networks: X, P and C.
It provides high level methods to transact on Avalanche's primary networks: X, P and C chain.

Wallet types supported:

Expand Down Expand Up @@ -44,3 +44,7 @@ or yarn
## Webpack

For Webpack version 5 and above you must use this plugin with it. https://www.npmjs.com/package/node-polyfill-webpack-plugin

## Docs

Can generate documentation with `yarn docs` and open `docs/index.html` in a browser.
Binary file not shown.
26 changes: 13 additions & 13 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module.exports = {
presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/preset-typescript'],
plugins: [
[
'module-resolver',
{
root: ['./src'],
alias: {
'@': './src',
},
},
],
],
};
presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/preset-typescript'],
plugins: [
[
'module-resolver',
{
root: ['./src'],
alias: {
'@': './src',
},
},
],
],
};
7 changes: 7 additions & 0 deletions dist-esm/Asset/Assets.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { iAssetDescriptionClean } from '../Asset/types';
export declare function getAssetDescriptionSync(assetId: string): iAssetDescriptionClean;
/**
* Uses the node api to get meta data given an asset ID. Saves the result to cache.
* @param assetId
*/
export declare function getAssetDescription(assetId: string): Promise<iAssetDescriptionClean>;
33 changes: 33 additions & 0 deletions dist-esm/Asset/Assets.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist-esm/Asset/Assets.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bee9c78

Please sign in to comment.