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

Add getNetworkInfo rpc #180

Merged
merged 2 commits into from
May 3, 2021
Merged

Add getNetworkInfo rpc #180

merged 2 commits into from
May 3, 2021

Conversation

jingyi2811
Copy link
Contributor

/kind feature

What this PR does / why we need it:

Add new getNetworkInfo rpc

@netlify
Copy link

netlify bot commented May 3, 2021

Deploy preview for jellyfish-defi ready!

Built with commit b263e44

https://deploy-preview-180--jellyfish-defi.netlify.app

@github-actions
Copy link

github-actions bot commented May 3, 2021

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/jellyfish/dist/jellyfish.umd.js 18.88 KB (+0.08% 🔺) 378 ms (+0.08% 🔺) 169 ms (+1.97% 🔺) 546 ms

canonbrother
canonbrother previously approved these changes May 3, 2021
@codecov
Copy link

codecov bot commented May 3, 2021

Codecov Report

Merging #180 (65d943e) into main (a969279) will decrease coverage by 0.39%.
The diff coverage is 100.00%.

❗ Current head 65d943e differs from pull request most recent head b263e44. Consider uploading reports for the commit b263e44 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main     #180      +/-   ##
==========================================
- Coverage   95.50%   95.10%   -0.40%     
==========================================
  Files          56       56              
  Lines        1180     1186       +6     
  Branches      149      150       +1     
==========================================
+ Hits         1127     1128       +1     
- Misses         50       55       +5     
  Partials        3        3              
Impacted Files Coverage Δ
packages/jellyfish-api-core/src/category/net.ts 100.00% <100.00%> (ø)
packages/testcontainers/src/chains/container.ts 84.54% <0.00%> (-4.03%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a969279...b263e44. Read the comment docs.

Comment on lines 36 to 63
version: number
subversion: string
protocolversion: number
localservices: string
localrelay: boolean
timeoffset: number
connections: number
networkactive: boolean
networks: Network[]
relayfee: number
incrementalfee: number,
localaddresses: LocalAddress[],
warnings: string
}

interface Network {
name: string,
limited: boolean,
reachable: boolean,
proxy: string,
proxy_randomize_credentials: boolean
}

interface LocalAddress {
address: string,
port: number,
score: number
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commas consistency, you should follow net.ts

note because npm run standard will always fix your commas at push but I disabled it for markdown.

@fuxingloh fuxingloh enabled auto-merge (squash) May 3, 2021 07:07
@fuxingloh fuxingloh merged commit db95cd0 into main May 3, 2021
@fuxingloh fuxingloh deleted the jimmy/rpc-getnetworkinfo branch May 3, 2021 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants