-
Notifications
You must be signed in to change notification settings - Fork 0
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
Husien Vora
committed
Dec 3, 2024
1 parent
d52c014
commit b8ef893
Showing
3 changed files
with
102 additions
and
76 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,48 @@ | ||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages | ||
|
||
name: Main Branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- package.json | ||
- CHANGELOG | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: true | ||
GITHUB_ACTIONS: true | ||
MNEMONIC:"vintage reflect pass input polar enlist giggle judge render position also document" | ||
PIN:"696969" | ||
PRIVATE_KEY_EVM:"0x7a9633b8103fec11c9e855a6b6c8c072e9af311a69b92ab0ad8186b1fb57371f" | ||
PRIVATE_KEY_BTC: "KzQfcdjDRUwpVmKKev6k2aAeJFJ359Ht9Umxdg77MTzf2E3bzGsC" | ||
EVM_ADDRESS_1:'0x6bbc122fa843f3ed30d23f8cdd9a430d1f898d07' | ||
EVM_ADDRESS_2:"0xbae949ddb4d8ac763c12f206db842b9b2d49a464" | ||
BITCOIN_ADDRESS_1:"bc1qugw5q5yrzw86wnw3lgldm8en0c736k4hvceuzl" | ||
BITCOIN_ADDRESS_2:"bc1qta5f6q32cphxt5rck3kuspukac7keqvxyuk4cl" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18.x | ||
- run: npm ci | ||
- run: npm run test | ||
|
||
publish-npm: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18.x | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm ci | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |
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,48 @@ | ||
# # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages | ||
|
||
name: Feature/Bugfix branch | ||
|
||
on: | ||
# workflow_call: | ||
push: | ||
branches: | ||
- feature-* | ||
- bugfix-* | ||
- dev | ||
- test | ||
pull_request: | ||
branches: | ||
- feature-* | ||
- bugfix-* | ||
- dev | ||
- test | ||
paths: | ||
- package.json | ||
- CHANGELOG | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Code checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setting up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Installing dependencies | ||
run: npm ci | ||
|
||
- name: Run tests | ||
run: | | ||
npm run test | ||
npx jest --coverage | tee ./coverage.txt && exit ${PIPESTATUS[0]} | ||
- name: Jest Coverage Comment | ||
uses: MishaKav/jest-coverage-comment@main | ||
with: | ||
coverage-path: ./coverage.txt | ||
|
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,77 +1,7 @@ | ||
#### 1.0.1 (2020-06-29) | ||
#### 1.0.0 (2020-06-29) | ||
|
||
##### Features updated | ||
|
||
* Added Github pipelines for master, feature and bugfix branch. | ||
* Added CHANGELOG file. | ||
|
||
|
||
#### 1.0.2 (2020-09-11) | ||
|
||
##### Features updated | ||
|
||
* Updated setHandlename Method | ||
|
||
#### 1.0.3 (2020-06-29) | ||
|
||
##### Features updated | ||
|
||
* Updated updateHandlename Method | ||
|
||
#### 1.0.4 (2020-06-29) | ||
|
||
##### Updated Contract Address | ||
|
||
* Updated the contract addresses as per the new deployments on ropsten. | ||
#### 1.0.5 (2020-11-19) | ||
|
||
##### Updated naming convention from Inblox Handle Name to InbloxID | ||
|
||
#### 1.0.6 (2021-01-04) | ||
|
||
##### Optimized contract updates | ||
|
||
*Created a method to get the contract addresses according to the web3 network | ||
*Updated the function names according to the latest contracts | ||
|
||
#### 1.0.7 (2021-03-12) | ||
|
||
##### Rebranding from Inblox to Safle | ||
|
||
*Updated all the variable and function names from Inblox to Safle. | ||
*Updated the contract ABIs. | ||
*Updated the contrat addresses. | ||
*Removed the user input for RPC URL and set a custom RPC URL for MATIC testnet. | ||
|
||
#### 1.0.8 (2021-03-17) | ||
|
||
##### MATIC network selection through user input in the constructor | ||
|
||
*Added a constructor parameter for network selection. The network details will be fetched and set based on the user env input. | ||
|
||
#### 1.0.1 (2021-04-16) | ||
|
||
##### Updated README | ||
|
||
*Updated all the instances of inblox to safle in the README file. | ||
|
||
#### 1.1.1 (2022-02-02) | ||
|
||
##### Resolve old SafleId | ||
|
||
*Created a method to resolve the old safleId of a user. | ||
|
||
#### 1.2.1 (2022-02-02) | ||
|
||
##### Resolve coin address | ||
|
||
*Added method to resolve safleId from coin address. | ||
*Added method to coin address from safleId and chainId. | ||
|
||
#### 1.2.2 (2022-02-11) | ||
|
||
##### Updated Polygon RPC URL's | ||
|
||
#### 1.3.0 (2022-06-24) | ||
|
||
##### [Breaking Change] - Now constructor parameter also accepts `rpcUrl`. | ||
- Validate SafleIDs against predefined rules. | ||
- Check the registration status of SafleIDs. | ||
- Resolve user addresses to SafleIDs and vice versa. | ||
- Retrieve SafleID registration fees. | ||
- Register a new SafleID using a relayer service. |
b8ef893
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report (73%)