Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(jellyfish-api-core): Add updatemasternode RPC typings #1847

Merged
merged 36 commits into from
Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b4df405
Add updateMasternode rpc (WIP)
marktanrj Nov 1, 2022
80cee4a
Add test cases
marktanrj Nov 2, 2022
cc0f828
Undo update config that was accidentally committed
marktanrj Nov 2, 2022
b995da1
Update testcases
marktanrj Nov 15, 2022
27721d8
Merge branch 'main' into marktanrj/updatemasternode-rpc-typing
marktanrj Nov 15, 2022
bc30eb9
Update image version
marktanrj Nov 16, 2022
bb06945
Update image version
marktanrj Nov 16, 2022
916df3d
Update image version
marktanrj Nov 22, 2022
3cc79ce
Update tests
marktanrj Nov 22, 2022
66554f7
feat(v3): bump to grandcentral and use `master-1d169a751` (#1841)
shohamc1 Nov 21, 2022
fbbd44f
chore(jellyfish-api-core): Change assert order in `getMiningInfo.test…
shohamc1 Nov 22, 2022
24ca435
feat(jellyfish-api-core): defid v3 poolpair/poolswap internal changes…
shohamc1 Nov 22, 2022
65b03f3
fix(jellyfish-api-core): update testPoolSwap arguments (#1856)
shohamc1 Nov 22, 2022
e469233
Undo update config that was accidentally committed
marktanrj Nov 2, 2022
aa478b5
Update image version
marktanrj Nov 16, 2022
3eb0a95
Undo rebase mess up
marktanrj Nov 22, 2022
408b4ea
Merge main
marktanrj Nov 22, 2022
6defd80
Add more tests
marktanrj Nov 22, 2022
687cd7e
Update packages/jellyfish-api-core/src/category/masternode.ts
marktanrj Nov 24, 2022
2c0c578
Test update MN during transferring
imkven Nov 25, 2022
7298063
Test updating several MNs owners in the same block
imkven Nov 25, 2022
5cd77a7
Refactor: remove try-catch blocks
shohamc1 Nov 25, 2022
a475b3c
Refactor: do not expect `undefined`
shohamc1 Nov 25, 2022
23c2528
Update updatemasternode.test.ts
imkven Nov 25, 2022
52eefa2
Add test: Node 1 try to update node 0 which should be rejected
imkven Nov 26, 2022
301b95d
Update updatemasternode.test.ts
imkven Nov 27, 2022
2052b11
Update updatemasternode.test.ts
imkven Nov 27, 2022
a235d1a
Update updatemasternode.test.ts
imkven Nov 27, 2022
dfd70ae
Update updatemasternode.test.ts
imkven Nov 27, 2022
ca6ca20
Fix incorrect auth test
shohamc1 Nov 27, 2022
4f9ce0f
Merge branch 'main' into marktanrj/updatemasternode-rpc-typing
imkven Nov 28, 2022
d4d3cb4
Update updatemasternode.test.ts
imkven Nov 28, 2022
427bf4b
Merge branch 'main' into marktanrj/updatemasternode-rpc-typing
imkven Nov 28, 2022
f4620aa
Update updatemasternode.test.ts
imkven Nov 29, 2022
3c35b7e
Merge branch 'main' into marktanrj/updatemasternode-rpc-typing
imkven Nov 29, 2022
399b613
Update updatemasternode.test.ts
imkven Nov 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/node/CATEGORIES/11-masternode.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,23 @@ interface UTXO {
}
```

## updatemasternode

Creates (and submits to local node and network) a masternode update transaction which update the masternode operator addresses, spending the given inputs..
The last optional argument (may be empty array) is an array of specific UTXOs to spend.

```ts title="client.masternode.updatemasternode()"
interface masternode {
updateMasternode(masternodeId: string, values: UpdateMasternodeValues, utxos: UTXO[] = []): Promise<string>
}

interface UpdateMasternodeValues {
ownerAddress?: string
operatorAddress?: string
rewardAddress?: string
}
```

## setGov

Set special governance variables
Expand Down
Loading