Skip to content
New issue

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

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

Already on GitHub? # to your account

[Venus] 各组件增加 Version 接口 #5132

Assignees
Labels
C-enhancement Category: feature enhancement CU-chain-service Venus chain service related issues

Comments

@simlecode
Copy link
Collaborator

simlecode commented Jul 25, 2022

链服务模块 / Chain Service Components

  • venus
  • venus-auth
  • venus-gateway
  • venus-messager
  • venus-miner
  • 文档 / docs

订单服务模块 / Deal Service Components

  • venus-market
  • 文档 / docs

算力服务模块 / Storage Power Service Components

  • venus-sector-manager
  • venus-worker
  • 文档 / docs

描述 / Description

各组件增加 Version 接口,方便查询正在使用的版本,参考 venus Version 接口

TODO

  • venus-shared 中为需要的组件增加 Version 接口

  • 各组件实现 Version 接口

    • venus
      $ curl http://127.0.0.1:3453/rpc/v0 -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <token>" -d '{"method": "Filecoin.Version","params":[], "id": 0}'
      # res
      {"jsonrpc":"2.0","result":{"Version":"1.8.0+git.343fb6831.dirty","APIVersion":66816},"id":0}
      
    • venus-auth
      $ curl http://127.0.0.1:8989/version
      # res
      {"Version":"1.6.0+git.ebc4df8"}
      
    • venus-gateway
      $ curl http://127.0.0.1:45132/rpc/v0 -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <token>" -d '{"method": "Gateway.Version","params":[], "id": 0}'
      # res
      {"jsonrpc":"2.0","result":{"Version":"v1.6.1+git.3a51dc9","APIVersion":0},"id":0}
      
    • venus-market
      curl http://127.0.0.1:41235/rpc/v0 -X POST -H "Content-Type: application/json" -H "Authorization: Bearer " -d '{"method": "VENUS_MARKET.Version","params":[], "id": 0}'
      {"jsonrpc":"2.0","result":{"Version":"v2.2.0+git.0d0d965","APIVersion":0},"id":0}
      
    • market-client
      curl http://127.0.0.1:41235/rpc/v0 -X POST -H "Content-Type: application/json" -H "Authorization: Bearer " -d '{"method": "VENUS_MARKET_CLIENT.Version","params":[], "id": 0}'
      {"jsonrpc":"2.0","result":{"Version":"v2.2.0+git.0d0d965","APIVersion":0},"id":0}
      
    • venus-messager
       curl http://127.0.0.1:39812/rpc/v0 -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <token>" -d '{"method": "Message.Version","params":[], "id": 0}'
      # res
      {"jsonrpc":"2.0","result":{"Version":"v1.6.0+git.38f382d","APIVersion":0},"id":0}
      
@simlecode simlecode added C-enhancement Category: feature enhancement CU-chain-service Venus chain service related issues labels Jul 25, 2022
@diwufeiwen
Copy link
Contributor

curl http://127.0.0.1:12308/rpc/v0 -X POST -H "Content-Type: application/json" -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBbGxvdyI6WyJyZWFkIiwid3JpdGUiLCJzaWduIiwiYWRtaW4iXX0.JYefq1U7OoA5OrLGAxxQEo4y74wB_GIdL2rj6GK9SRQ" -d '{"method": "Filecoin.Version","params":[], "id": 0}'
{"jsonrpc":"2.0","result":{"Version":"1.6.0'+gitc21fc0c'","APIVersion":66048},"id":0}

# for free to join this conversation on GitHub. Already have an account? # to comment