wirelineio / wns

Wireline Naming Service
GNU General Public License v3.0
0 stars 1 forks source link

Test wire CLI commands against lite node #193

Closed ashwinphatak closed 4 years ago

ashwinphatak commented 4 years ago
❯ wire wns record list
[
  {
    "id": "QmakdUE5oPN5DkA4mut7mCnQ8tJuvvAsoJxSAU25R1MW6S",
    "type": "wrn:protocol",
    "name": "wireline.io/chess",
    "version": "1.0.62",
    "owners": [
      "6ee3328f65c8566cd5451e49e97a767d10a8adf7"
    ],
    "bondId": "20cd5d8f6dd7e4e2904836b341f0b5b6de89be8b6b9247a95f9b26944b8fba9a",
    "createTime": "2020-03-26T12:33:10.330950000",
    "expiryTime": "2021-03-26T12:33:10.330950000",
    "attributes": {
      "displayName": "Chess",
      "name": "wireline.io/chess",
      "type": "wrn:protocol",
      "version": "1.0.62"
    }
  },
  {
    "id": "Qma6susk1snTjzPno6BfrBNJcwih8PeBCNnMPhWwmAAcvh",
    "type": "wrn:bot",
    "name": "wireline.io/chess-bot",
    "version": "2.0.83",
    "owners": [
      "6ee3328f65c8566cd5451e49e97a767d10a8adf7"
    ],
    "bondId": "20cd5d8f6dd7e4e2904836b341f0b5b6de89be8b6b9247a95f9b26944b8fba9a",
    "createTime": "2020-03-26T12:33:30.586031000",
    "expiryTime": "2021-03-26T12:33:30.586031000",
    "attributes": {
      "version": "2.0.83",
      "accessKey": "7db6a0c2b8bc79e733612b5cfd45e9f69bec4d05d424076826a0d08a2a62641c",
      "displayName": "ChessBot",
      "name": "wireline.io/chess-bot",
      "protocol": {
        "id": "QmdeazkS38aCrqG6qKwaio2fQnShE6RGpmNdqStLkkZcQN"
      },
      "type": "wrn:bot"
    }
  },
  {
    "id": "QmZ4xLsZWTPnNjdBF9ETFfdabffGbpHqZ89pSNtBWrNR5i",
    "type": "wrn:pad",
    "name": "wireline.io/chess-pad",
    "version": "5.1.62",
    "owners": [
      "6ee3328f65c8566cd5451e49e97a767d10a8adf7"
    ],
    "bondId": "20cd5d8f6dd7e4e2904836b341f0b5b6de89be8b6b9247a95f9b26944b8fba9a",
    "createTime": "2020-03-26T12:33:20.452731000",
    "expiryTime": "2021-03-26T12:33:20.452731000",
    "attributes": {
      "displayName": "ChessPad",
      "name": "wireline.io/chess-pad",
      "protocol": {
        "id": "QmakdUE5oPN5DkA4mut7mCnQ8tJuvvAsoJxSAU25R1MW6S"
      },
      "type": "wrn:pad",
      "version": "5.1.62"
    }
  }
]
❯ wire wns record get --id Qma6susk1snTjzPno6BfrBNJcwih8PeBCNnMPhWwmAAcvh
[
  {
    "id": "Qma6susk1snTjzPno6BfrBNJcwih8PeBCNnMPhWwmAAcvh",
    "type": "wrn:bot",
    "name": "wireline.io/chess-bot",
    "version": "2.0.83",
    "owners": [
      "6ee3328f65c8566cd5451e49e97a767d10a8adf7"
    ],
    "bondId": "20cd5d8f6dd7e4e2904836b341f0b5b6de89be8b6b9247a95f9b26944b8fba9a",
    "createTime": "2020-03-26T12:33:30.586031000",
    "expiryTime": "2021-03-26T12:33:30.586031000",
    "attributes": {
      "accessKey": "7db6a0c2b8bc79e733612b5cfd45e9f69bec4d05d424076826a0d08a2a62641c",
      "displayName": "ChessBot",
      "name": "wireline.io/chess-bot",
      "protocol": {
        "id": "QmdeazkS38aCrqG6qKwaio2fQnShE6RGpmNdqStLkkZcQN"
      },
      "type": "wrn:bot",
      "version": "2.0.83"
    }
  }
]
❯ wire wns record resolve wrn:bot:wireline.io/chess-bot
[
    {
        "id": "Qmf9rwB1QDi8u9xvfCC5qiY3ozNwc3cticsLomm7dh79AP",
        "type": "wrn:bot",
        "name": "wireline.io/chess-bot",
        "version": "2.0.88",
        "owners": [
            "6ee3328f65c8566cd5451e49e97a767d10a8adf7"
        ],
        "bondId": "0b1dfae8f536840638702d22433ce93a4a4b94054e04840142ccad1a1d416b9f",
        "createTime": "2020-03-26T12:40:10.930864000",
        "expiryTime": "2021-03-26T12:40:10.930864000",
        "attributes": {
            "accessKey": "7db6a0c2b8bc79e733612b5cfd45e9f69bec4d05d424076826a0d08a2a62641c",
            "displayName": "ChessBot",
            "name": "wireline.io/chess-bot",
            "protocol": {
                "id": "QmdeazkS38aCrqG6qKwaio2fQnShE6RGpmNdqStLkkZcQN"
            },
            "type": "wrn:bot",
            "version": "2.0.88"
        }
    }
]
❯ wire wns record resolve wrn:bot:wireline.io/chess-bot#2.0.82
[
    {
        "id": "QmSjDxsQ2Ud9AdHEr7EANYbt91ug11Jy5C88XjLxwm9Apt",
        "type": "wrn:bot",
        "name": "wireline.io/chess-bot",
        "version": "2.0.82",
        "owners": [
            "6ee3328f65c8566cd5451e49e97a767d10a8adf7"
        ],
        "bondId": "20cd5d8f6dd7e4e2904836b341f0b5b6de89be8b6b9247a95f9b26944b8fba9a",
        "createTime": "2020-03-26T12:33:25.531429000",
        "expiryTime": "2021-03-26T12:33:25.531429000",
        "attributes": {
            "accessKey": "7db6a0c2b8bc79e733612b5cfd45e9f69bec4d05d424076826a0d08a2a62641c",
            "displayName": "ChessBot",
            "name": "wireline.io/chess-bot",
            "protocol": {
                "id": "QmdeazkS38aCrqG6qKwaio2fQnShE6RGpmNdqStLkkZcQN"
            },
            "type": "wrn:bot",
            "version": "2.0.82"
        }
    }
]
❯ wire wns bond list

[{"message":"Not supported","path":["queryBonds"]}]
❯ wire wns record publish --filename ../registry-client/src/testing/data/bot.yml

Error: Not supported
❯ wire wns tokens send --address abc --type uwire --quantity 1000

Error: Not supported
❯ wire wns account get --address asdasd

[{"message":"Not supported","path":["getAccounts"]}]
ashwinphatak commented 4 years ago
❯ wire bot query
[
  {
    "id": "Qmf9rwB1QDi8u9xvfCC5qiY3ozNwc3cticsLomm7dh79AP",
    "type": "wrn:bot",
    "name": "wireline.io/chess-bot",
    "version": "2.0.88",
    "owners": [
      "6ee3328f65c8566cd5451e49e97a767d10a8adf7"
    ],
    "bondId": "0b1dfae8f536840638702d22433ce93a4a4b94054e04840142ccad1a1d416b9f",
    "createTime": "2020-03-26T12:40:10.930864000",
    "expiryTime": "2021-03-26T12:40:10.930864000",
    "attributes": {
      "displayName": "ChessBot",
      "name": "wireline.io/chess-bot",
      "protocol": {
        "id": "QmdeazkS38aCrqG6qKwaio2fQnShE6RGpmNdqStLkkZcQN"
      },
      "type": "wrn:bot",
      "version": "2.0.88",
      "accessKey": "7db6a0c2b8bc79e733612b5cfd45e9f69bec4d05d424076826a0d08a2a62641c"
    }
  }
]
ashwinphatak commented 4 years ago
❯ wire bot register
Registering wireline.io/echo v1.0.51...

Error: Not supported