Skip to content

Commit

Permalink
Fix merge conflict and add test
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorLai committed Sep 26, 2024
2 parents 4276e19 + 47d0c68 commit 627952f
Show file tree
Hide file tree
Showing 30 changed files with 3,902 additions and 552 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: run-test-unit

on:
push:
branches:
- 'master'
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:

jobs:
node6:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build to run test unit
uses: docker/build-push-action@v4
with:
context: .
file: node-6.dockerfile
push: false
tags: test
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ steem.api.getAccounts(['ned', 'dan'], function(err, response){
```

## CDN
https://cdn.steemjs.com/lib/latest/steem.min.js<br/>
https://cdn.jsdelivr.net/npm/steem/dist/steem.min.js<br/>
```html
<script src="//cdn.steemjs.com/lib/latest/steem.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/steem/dist/steem.min.js"></script>
```

## Webpack
Expand All @@ -58,8 +58,6 @@ $ npm install steem --save

## RPC Servers
https://api.steemit.com By Default<br/>
https://node.steem.ws<br/>
https://this.piston.rocks<br/>

## Examples
### Broadcast Vote
Expand Down Expand Up @@ -92,8 +90,22 @@ var reputation = steem.formatter.reputation(user.reputation);
console.log(reputation);
```

### Steem Testnet
Steem-js requires some configuration to work on the public Steem testnet.

You need to set two Steem API options, `address_prefix` and `chain_id`.
```js
steem.api.setOptions({
address_prefix: 'TST',
chain_id: '46d82ab7d8db682eb1959aed0ada039a6d49afa1602491f93dde9cac3e8e6c32',
useTestNet: true,
});
```

The Chain ID could change. If it does, it may not be reflected here, but will be documented on any testnet launch announcements.

## Contributions
Patches are welcome! Contributors are listed in the package.json file. Please run the tests before opening a pull request and make sure that you are passing all of them. If you would like to contribute, but don't know what to work on, check the issues list or on Steemit Chat channel #steemjs https://steemit.chat/channel/steemjs.
Patches are welcome! Contributors are listed in the package.json file. Please run the tests before opening a pull request and make sure that you are passing all of them. If you would like to contribute, but don't know what to work on, check the issues list.

## Issues
When you find issues, please report them!
Expand Down
Loading

0 comments on commit 627952f

Please sign in to comment.