Skip to content

Commit

Permalink
Merge branch 'main' into chee-chyuan/rpc_masternode_listanchor
Browse files Browse the repository at this point in the history
  • Loading branch information
chee-chyuan committed Dec 30, 2021
2 parents 3db6418 + 33606bf commit 7c4f102
Show file tree
Hide file tree
Showing 44 changed files with 1,158 additions and 392 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ updates:
interval: "daily"
labels:
- "kind/dependencies"
commit-message:
include: scope
prefix: bump
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- uses: actions/setup-node@04c56d2f954f1e4c69436aa54cfef261a018f458
- uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
with:
node-version: '16'
cache: 'npm'
Expand All @@ -35,7 +35,7 @@ jobs:
GH_INSTANCE_TOTAL: 10
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- uses: actions/setup-node@04c56d2f954f1e4c69436aa54cfef261a018f458
- uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
with:
node-version: '16'
cache: 'npm'
Expand All @@ -54,7 +54,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- uses: actions/setup-node@04c56d2f954f1e4c69436aa54cfef261a018f458
- uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
with:
node-version: '16'
cache: 'npm'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
environment: NPM Release Publishing
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- uses: actions/setup-node@04c56d2f954f1e4c69436aa54cfef261a018f458
- uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
with:
node-version: '16'

Expand Down
4 changes: 3 additions & 1 deletion .idea/codeStyles/Project.xml

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

1 change: 1 addition & 0 deletions .idea/dictionaries/fuxing.xml

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

4 changes: 2 additions & 2 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"@docusaurus/module-type-aliases": "^2.0.0-beta.14",
"@docusaurus/types": "^2.0.0-beta.14",
"@tsconfig/docusaurus": "^1.0.4",
"@types/react": "^17.0.37",
"@types/react-helmet": "^6.1.4",
"@types/react": "^17.0.38",
"@types/react-helmet": "^6.1.5",
"@types/react-router-dom": "^5.3.2"
},
"browserslist": {
Expand Down
31 changes: 31 additions & 0 deletions docs/node/CATEGORIES/11-masternode.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,22 @@ interface MasternodeResult<T> {
}
```

## getMasternodeBlocks

Returns blocks generated by the specified masternode

```ts title="client.masternode.getMasternodeBlocks"
interface masternode {
getMasternodeBlocks(identifier: MasternodeBlock, depth?: number): Promise<MasternodeResult<string>>
}

interface MasternodeBlock {
id?: string
ownerAddress?: string
operatorAddress?: string
}
```

## resignMasternode

Creates a transaction resigning a masternode.
Expand Down Expand Up @@ -190,6 +206,21 @@ interface masternode {
}
```

## getAnchorTeams

Returns the auth and confirm anchor masternode teams at current or specified height

```ts title="client.masternode.getAnchorTeams"
interface masternode {
getAnchorTeams (blockHeight?: number): Promise<AnchorTeamResult>
}

interface AnchorTeamResult {
auth: string[]
confirm: string[]
}
```

## getActiveMasternodeCount

Returns number of unique masternodes in the last specified number of blocks.
Expand Down
4 changes: 3 additions & 1 deletion docs/node/CATEGORIES/14-spv.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ List anchors.
```ts title=client.spv.listAnchors()"
interface spv {
listAnchors (
options: ListAnchorsOptions = { minBtcHeight: -1, maxBtcHeight: -1, minConfs: -1, maxConfs: -1 }
options: ListAnchorsOptions = { minBtcHeight: -1, maxBtcHeight: -1, minConfs: -1, maxConfs: -1, startBTCHeight: -1, limit: -1 }
): Promise<ListAnchorsResult[]>
}

Expand All @@ -292,6 +292,8 @@ interface ListAnchorsOptions {
maxBtcHeight?: number
minConfs?: number
maxConfs?: number
startBTCHeight?: number
limit?: number
}

interface ListAnchorsResult {
Expand Down
97 changes: 67 additions & 30 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"husky": "^7.0.4",
"jest": "^27.4.5",
"lerna": "^4.0.0",
"lint-staged": "^12.1.3",
"lint-staged": "^12.1.4",
"shuffle-seed": "^1.1.6",
"nock": "^13.1.3",
"ts-jest": "^27.1.2",
Expand Down
Loading

0 comments on commit 7c4f102

Please sign in to comment.