This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
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
53 changed files
with
70,961 additions
and
2,730 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: commitlint/lint/test/build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
commitlint-lint-test-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Commit lint | ||
uses: wagoid/commitlint-github-action@v4 | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
- name: Install | ||
run: yarn install --frozen-lockfile | ||
- name: Type check | ||
run: yarn type-check | ||
- name: Lint | ||
run: yarn lint | ||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"branches": "develop", | ||
"repositoryUrl": "https://github.com/shapeshift/lib", | ||
"debug": "true", | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/npm", | ||
"@semantic-release/github", | ||
[ | ||
"@semantic-release/changelog", | ||
{ | ||
"changelogFile": "CHANGELOG.md" | ||
} | ||
], | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
"assets": ["package.json", "package-lock.json", "CHANGELOG.md"], | ||
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
} | ||
] | ||
] | ||
} |
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 @@ | ||
## Contributing Guidelines | ||
|
||
### Conventional Commits | ||
|
||
We use Conventional Commits for our commit messages. This allows automated tools like semantic-release to generate changelogs, bump versions according to semver, and release and publish the latest code. Please see https://www.conventionalcommits.org/en/v1.0.0/ for more information. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {extends: ['@commitlint/config-conventional']} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { BaseAsset, ContractTypes, NetworkTypes } from '../types' | ||
import { BaseAsset, ContractTypes, NetworkTypes, ChainTypes } from '../types' | ||
|
||
export const baseAssets: Array<BaseAsset> = [ | ||
{ | ||
chain: 'ETH', | ||
network: NetworkTypes.ETH_MAINNET, | ||
chain: ChainTypes.Ethereum, | ||
network: NetworkTypes.MAINNET, | ||
symbol: 'ETH', | ||
displayName: 'Ethereum', | ||
name: 'Ethereum', | ||
precision: 18, | ||
slip44: 60, | ||
color: '#FFFFFF', | ||
|
@@ -17,10 +17,10 @@ export const baseAssets: Array<BaseAsset> = [ | |
receiveSupport: true | ||
}, | ||
{ | ||
chain: 'BTC', | ||
network: NetworkTypes.BTC_MAINNET, | ||
chain: ChainTypes.Bitcoin, | ||
network: NetworkTypes.MAINNET, | ||
symbol: 'BTC', | ||
displayName: 'Bitcoin', | ||
name: 'Bitcoin', | ||
precision: 8, | ||
slip44: 0, | ||
color: '#FFFFFF', | ||
|
@@ -32,10 +32,40 @@ export const baseAssets: Array<BaseAsset> = [ | |
receiveSupport: false | ||
}, | ||
{ | ||
chain: 'ETH', | ||
chain: ChainTypes.Bitcoin, | ||
network: NetworkTypes.TESTNET, | ||
symbol: 'BTC', | ||
name: 'Bitcoin', | ||
precision: 8, | ||
slip44: 1, | ||
color: '#FFFFFF', | ||
secondaryColor: '#FFFFFF', | ||
icon: 'https://assets.coincap.io/assets/icons/[email protected]', | ||
explorer: 'https://live.blockcypher.com/btc-testnet/', | ||
explorerTxLink: 'https://live.blockcypher.com/btc-testnet/tx/', | ||
sendSupport: false, | ||
receiveSupport: false | ||
}, | ||
{ | ||
chain: ChainTypes.Litecoin, | ||
network: NetworkTypes.MAINNET, | ||
symbol: 'LTC', | ||
name: 'Litecoin', | ||
precision: 8, | ||
slip44: 2, | ||
color: '#FFFFFF', | ||
secondaryColor: '#FFFFFF', | ||
icon: 'https://assets.coincap.io/assets/icons/[email protected]', | ||
explorer: 'https://live.blockcypher.com', | ||
explorerTxLink: 'https://live.blockcypher.com/ltc/tx/', | ||
sendSupport: false, | ||
receiveSupport: false | ||
}, | ||
{ | ||
chain: ChainTypes.Ethereum, | ||
network: NetworkTypes.ETH_ROPSTEN, | ||
symbol: 'ETH', | ||
displayName: 'Ropsten Testnet Ethereum', | ||
name: 'Ropsten Testnet Ethereum', | ||
precision: 18, | ||
slip44: 1, | ||
color: '#FFFFFF', | ||
|
@@ -47,7 +77,7 @@ export const baseAssets: Array<BaseAsset> = [ | |
receiveSupport: false, | ||
tokens: [ | ||
{ | ||
displayName: 'Test Token', | ||
name: 'Test Token', | ||
precision: 18, | ||
tokenId: '0x1da00b6fc705f2ce4c25d7e7add25a3cc045e54a', | ||
contractType: ContractTypes.ERC20, | ||
|
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
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
Oops, something went wrong.