-
Notifications
You must be signed in to change notification settings - Fork 98
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
Billy/454 tx info #770
Merged
Merged
Billy/454 tx info #770
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
09fa294
pause
okwme 0f799d6
txs loading, need styles and tests
okwme 171b219
test fix
okwme ae37dc7
changelog
okwme a2d926b
Merge branch 'develop' into billy/454-tx-info
okwme 79d0d76
wait til network back online
okwme a05d8ba
pause
okwme d0c3184
Merge branch 'develop' into billy/454-tx-info
nylira 5189ebc
networking
okwme eb783f0
Merge branch 'billy/454-tx-info' of github.com:cosmos/voyager into bi…
okwme 933b571
testnet bad replies
okwme a5299cc
enough coverage?
okwme 2408361
Merge branch 'develop' into billy/454-tx-info
okwme 7c82076
Merge branch 'develop' into billy/454-tx-info
nylira 57d3a35
Merge branch 'billy/454-tx-info' of github.com:cosmos/voyager into bi…
okwme 9965edf
fabo feedback
okwme b016e6b
fixed test
okwme 945fb68
loops
okwme d2ed57f
make utils file
okwme 3eeeec3
remove block history
okwme e3fcb7c
store txs keyed by height
okwme 94c167f
metaBlocks keyed by height
okwme 1373730
clean up promises and tx util
okwme 86e36e7
further matt feedback
okwme 87b1375
Merge branch 'develop' into billy/454-tx-info
okwme File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -89,6 +89,8 @@ Object.assign(Client.prototype, { | |
}, | ||
coinTxs: argReq("GET", "/tx/coin"), | ||
|
||
txs: argReq("GET", "/txs"), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🥇 |
||
|
||
// staking | ||
candidate: argReq("GET", "/query/stake/candidate"), | ||
candidates: req("GET", "/query/stake/candidates"), | ||
|
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,14 @@ | ||
import crypto from "crypto" | ||
import varint from "varint" | ||
|
||
export function getTxHash(txstring) { | ||
let txbytes = Buffer.from(txstring, "base64") | ||
let varintlen = new Uint8Array(varint.encode(txbytes.length)) | ||
let tmp = new Uint8Array(varintlen.byteLength + txbytes.byteLength) | ||
tmp.set(new Uint8Array(varintlen), 0) | ||
tmp.set(new Uint8Array(txbytes), varintlen.byteLength) | ||
return crypto | ||
.createHash("ripemd160") | ||
.update(Buffer.from(tmp)) | ||
.digest("hex") | ||
} |
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@jolesbi this is what you were looking for, right?