support 0.39 SDK #288

Closed
opened 2019-08-21 17:48:07 +02:00 by tzarebczan · 1 comment
tzarebczan commented 2019-08-21 17:48:07 +02:00 (Migrated from github.com)

main changes since 0.37.5:

  1. resolve response changed - certificate section removed, moved into signing channel (see below). Also, new meta fields that we may want to use at some point.

  2. account balance now returns more than just available balance (don't know if we use this)

resolve response in 37.5:

{
  "eight": {
    "certificate": {
      "address": "bWAbWicEdPTh6fnQZN2Bwv86VX1Xkm5ebZ",
      "amount": "1.0",
      "claim_id": "8f23ab0341dea395384415427d49911958ca442a",
      "claim_sequence": -1,
      "confirmations": 30796,
      "decoded_claim": true,
      "effective_amount": "1.0",
      "has_signature": false,
      "height": 556171,
      "name": "@LBRY-India",
      "normalized_name": "@lbry-india",
      "nout": 0,
      "permanent_url": "lbry://@LBRY-India#8f23ab0341dea395384415427d49911958ca442a",
      "protobuf": "00125a0a583056301006072a8648ce3d020106052b8104000a034200041cbdbbaf8358b79614254d8a99dfa6eef9e7b36253f3e24a355202b3d2d5d3b8c2c8a1cb0608c94be87cb700419d3aabb2c5707383029998a144728242908ca4",
      "supports": [],
      "timestamp": 1556040690,
      "txid": "cc604d77dcc1d400d9249add8fb0f2785740f42ae0cb891f6964ad0e879a5463",
      "valid_at_height": 556171,
      "value": {
        "public_key": "3056301006072a8648ce3d020106052b8104000a034200041cbdbbaf8358b79614254d8a99dfa6eef9e7b36253f3e24a355202b3d2d5d3b8c2c8a1cb0608c94be87cb700419d3aabb2c5707383029998a144728242908ca4"
      }
    },
    "claim": {
      "address": "bESZeiLFPA2bNwszKh6XS16cD79or9NgKq",
      "amount": "570.0",
      "channel_name": "@LBRY-India",
      "claim_id": "07e89510f537d63741b7d370cb3049610e9cdfe0",
      "claim_sequence": -1,
      "confirmations": 26207,
      "decoded_claim": true,
      "effective_amount": "570.0",
      "has_signature": true,
      "height": 560760,
      "is_channel_signature_valid": true,
      "name": "eight",
      "nout": 0,
      "permanent_url": "lbry://eight#07e89510f537d63741b7d370cb3049610e9cdfe0",
      "protobuf": "012a44ca581991497d4215443895a3de4103ab238fbd7349da7cb04eb13cb247f13a8086b031c0dcd02ba17518323d61feafeff3cc9062a573267d2f367a8bd7981f95e71aa35eec229248c5c011be9c4d747d2ee10aa6010a3d2209766964656f2f6d70343230834d077d71758d3acae63b87b8d0a583ac26959c6e52bb8c9852391bbf65fd22474b1d4f734b7afac0b9e016f39115e31a2e437265617469766520436f6d6d6f6e73204174747269627574696f6e20342e3020496e7465726e6174696f6e616c223568747470733a2f2f6372656174697665636f6d6d6f6e732e6f72672f6c6963656e7365732f62792f342e302f6c6567616c636f646542324c42525920497320537072656164696e67204c696b6520412056697275732c20486f6c6420546967687420486f646c6572734ade024c42525920497320537072656164696e67204c696b6520412056697275732c20486f6c6420546967687420486f646c6572730a41206c6f74206f662070656f706c65206172652068656172696e672061626f7574204c4252592c20696620796f75277665200a616c7265616479206865617264206f662075732c20686f6c6420746967687420636f732061206c6f742069732061626f757420746f207475726e202e2e2e0a0a537570706f7274207573206c65747320637265617465206d6f72652061776172656e6573732061626f7574204c42525920616e642074686520667574757265200a6f6620646563656e7472616c697a65642073686172696e672e0a0a446f6e6174696f6e73206172652076657279206d7563682077656c636f6d652e205468616e6b20796f752e0a446f6e6174696f6e206164643a206257645a7565414e35626b6570345a393431657a58694b414c6b686a43594372534552302a2e68747470733a2f2f737065652e63682f352f716c56784d38343153517563797665504e4366716c4e6f322e504e4762020801",
      "signature_is_valid": true,
      "signing_channel": {
        "claim_id": "8f23ab0341dea395384415427d49911958ca442a",
        "name": "@LBRY-India",
        "value": {
          "public_key": "3056301006072a8648ce3d020106052b8104000a034200041cbdbbaf8358b79614254d8a99dfa6eef9e7b36253f3e24a355202b3d2d5d3b8c2c8a1cb0608c94be87cb700419d3aabb2c5707383029998a144728242908ca4"
        }
      },
      "supports": [],
      "timestamp": 1556777388,
      "txid": "6eb88662cc4b3e0baf56495cc67443929d21b62975b8cbab3e8d9b7f8e25badc",
      "valid_at_height": 560777,
      "value": {
        "description": "LBRY Is Spreading Like A Virus, Hold Tight Hodlers\nA lot of people are hearing about LBRY, if you've \nalready heard of us, hold tight cos a lot is about to turn ...\n\nSupport us lets create more awareness about LBRY and the future \nof decentralized sharing.\n\nDonations are very much welcome. Thank you.\nDonation add: bWdZueAN5bkep4Z941ezXiKALkhjCYCrSE",
        "languages": [
          "en"
        ],
        "license": "Creative Commons Attribution 4.0 International",
        "license_url": "https://creativecommons.org/licenses/by/4.0/legalcode",
        "source": {
          "media_type": "video/mp4",
          "sd_hash": "834d077d71758d3acae63b87b8d0a583ac26959c6e52bb8c9852391bbf65fd22474b1d4f734b7afac0b9e016f39115e3"
        },
        "thumbnail": {
          "url": "https://spee.ch/5/qlVxM841SQucyvePNCfqlNo2.PNG"
        },
        "title": "LBRY Is Spreading Like A Virus, Hold Tight Hodlers"
      }
    },
    "claims_in_channel": 0
  }
}

in 38:

(lbry-venv) C:\Users\thoma\Documents\lbry>lbrynet resolve eight
{
  "eight": {
    "address": "bESZeiLFPA2bNwszKh6XS16cD79or9NgKq",
    "amount": "570.0",
    "canonical_url": "lbry://@LBRY-India#8/eight#0",
    "claim_id": "07e89510f537d63741b7d370cb3049610e9cdfe0",
    "claim_op": "update",
    "confirmations": 26208,
    "height": 560760,
    "is_change": false,
    "is_channel_signature_valid": true,
    "is_mine": false,
    "meta": {
      "activation_height": 557079,
      "creation_height": 557073,
      "creation_timestamp": 1556184553,
      "effective_amount": "570.0",
      "expiration_height": 2659473,
      "is_controlling": true,
      "support_amount": "0.0",
      "trending_global": 0.0,
      "trending_group": 0,
      "trending_local": 0.0,
      "trending_mixed": 0.0
    },
    "name": "eight",
    "normalized_name": "eight",
    "nout": 0,
    "permanent_url": "lbry://eight#07e89510f537d63741b7d370cb3049610e9cdfe0",
    "short_url": "lbry://eight#0",
    "signing_channel": {
      "address": "bWAbWicEdPTh6fnQZN2Bwv86VX1Xkm5ebZ",
      "amount": "1.0",
      "canonical_url": "lbry://@LBRY-India#8",
      "claim_id": "8f23ab0341dea395384415427d49911958ca442a",
      "claim_op": "create",
      "confirmations": 30797,
      "height": 556171,
      "is_change": false,
      "is_mine": false,
      "meta": {
        "activation_height": 556171,
        "claims_in_channel": 11,
        "creation_height": 556171,
        "creation_timestamp": 1556040690,
        "effective_amount": "1.0",
        "expiration_height": 2658571,
        "is_controlling": true,
        "support_amount": "0.0",
        "trending_global": 0.0,
        "trending_group": 0,
        "trending_local": 0.0,
        "trending_mixed": 0.0
      },
      "name": "@LBRY-India",
      "normalized_name": "@lbry-india",
      "nout": 0,
      "permanent_url": "lbry://@LBRY-India#8f23ab0341dea395384415427d49911958ca442a",
      "short_url": "lbry://@LBRY-India#8",
      "timestamp": 1556040690,
      "txid": "cc604d77dcc1d400d9249add8fb0f2785740f42ae0cb891f6964ad0e879a5463",
      "type": "claim",
      "value": {
        "public_key": "3056301006072a8648ce3d020106052b8104000a034200041cbdbbaf8358b79614254d8a99dfa6eef9e7b36253f3e24a355202b3d2d5d3b8c2c8a1cb0608c94be87cb700419d3aabb2c5707383029998a144728242908ca4",
        "public_key_id": "bMxFG5weZK8k3YyqhFHvRucUaT6Q6tGESx"
      },
      "value_type": "channel"
    },
    "timestamp": 1556777388,
    "txid": "6eb88662cc4b3e0baf56495cc67443929d21b62975b8cbab3e8d9b7f8e25badc",
    "type": "claim",
    "value": {
      "description": "LBRY Is Spreading Like A Virus, Hold Tight Hodlers\nA lot of people are hearing about LBRY, if you've \nalready heard of us, hold tight cos a lot is about to turn ...\n\nSupport us lets create more awareness about LBRY and the future \nof decentralized sharing.\n\nDonations are very much welcome. Thank you.\nDonation add: bWdZueAN5bkep4Z941ezXiKALkhjCYCrSE",
      "languages": [
        "en"
      ],
      "license": "Creative Commons Attribution 4.0 International",
      "license_url": "https://creativecommons.org/licenses/by/4.0/legalcode",
      "source": {
        "media_type": "video/mp4",
        "sd_hash": "834d077d71758d3acae63b87b8d0a583ac26959c6e52bb8c9852391bbf65fd22474b1d4f734b7afac0b9e016f39115e3"
      },
      "stream_type": "video",
      "thumbnail": {
        "url": "https://spee.ch/5/qlVxM841SQucyvePNCfqlNo2.PNG"
      },
      "title": "LBRY Is Spreading Like A Virus, Hold Tight Hodlers"
    },
    "value_type": "stream"
  }
}```
main changes since 0.37.5: 1) resolve response changed - certificate section removed, moved into signing channel (see below). Also, new meta fields that we may want to use at some point. 2) account balance now returns more than just available balance (don't know if we use this) resolve response in 37.5: ```C:\Users\tom\Desktop>lbrynet resolve eight { "eight": { "certificate": { "address": "bWAbWicEdPTh6fnQZN2Bwv86VX1Xkm5ebZ", "amount": "1.0", "claim_id": "8f23ab0341dea395384415427d49911958ca442a", "claim_sequence": -1, "confirmations": 30796, "decoded_claim": true, "effective_amount": "1.0", "has_signature": false, "height": 556171, "name": "@LBRY-India", "normalized_name": "@lbry-india", "nout": 0, "permanent_url": "lbry://@LBRY-India#8f23ab0341dea395384415427d49911958ca442a", "protobuf": "00125a0a583056301006072a8648ce3d020106052b8104000a034200041cbdbbaf8358b79614254d8a99dfa6eef9e7b36253f3e24a355202b3d2d5d3b8c2c8a1cb0608c94be87cb700419d3aabb2c5707383029998a144728242908ca4", "supports": [], "timestamp": 1556040690, "txid": "cc604d77dcc1d400d9249add8fb0f2785740f42ae0cb891f6964ad0e879a5463", "valid_at_height": 556171, "value": { "public_key": "3056301006072a8648ce3d020106052b8104000a034200041cbdbbaf8358b79614254d8a99dfa6eef9e7b36253f3e24a355202b3d2d5d3b8c2c8a1cb0608c94be87cb700419d3aabb2c5707383029998a144728242908ca4" } }, "claim": { "address": "bESZeiLFPA2bNwszKh6XS16cD79or9NgKq", "amount": "570.0", "channel_name": "@LBRY-India", "claim_id": "07e89510f537d63741b7d370cb3049610e9cdfe0", "claim_sequence": -1, "confirmations": 26207, "decoded_claim": true, "effective_amount": "570.0", "has_signature": true, "height": 560760, "is_channel_signature_valid": true, "name": "eight", "nout": 0, "permanent_url": "lbry://eight#07e89510f537d63741b7d370cb3049610e9cdfe0", "protobuf": "012a44ca581991497d4215443895a3de4103ab238fbd7349da7cb04eb13cb247f13a8086b031c0dcd02ba17518323d61feafeff3cc9062a573267d2f367a8bd7981f95e71aa35eec229248c5c011be9c4d747d2ee10aa6010a3d2209766964656f2f6d70343230834d077d71758d3acae63b87b8d0a583ac26959c6e52bb8c9852391bbf65fd22474b1d4f734b7afac0b9e016f39115e31a2e437265617469766520436f6d6d6f6e73204174747269627574696f6e20342e3020496e7465726e6174696f6e616c223568747470733a2f2f6372656174697665636f6d6d6f6e732e6f72672f6c6963656e7365732f62792f342e302f6c6567616c636f646542324c42525920497320537072656164696e67204c696b6520412056697275732c20486f6c6420546967687420486f646c6572734ade024c42525920497320537072656164696e67204c696b6520412056697275732c20486f6c6420546967687420486f646c6572730a41206c6f74206f662070656f706c65206172652068656172696e672061626f7574204c4252592c20696620796f75277665200a616c7265616479206865617264206f662075732c20686f6c6420746967687420636f732061206c6f742069732061626f757420746f207475726e202e2e2e0a0a537570706f7274207573206c65747320637265617465206d6f72652061776172656e6573732061626f7574204c42525920616e642074686520667574757265200a6f6620646563656e7472616c697a65642073686172696e672e0a0a446f6e6174696f6e73206172652076657279206d7563682077656c636f6d652e205468616e6b20796f752e0a446f6e6174696f6e206164643a206257645a7565414e35626b6570345a393431657a58694b414c6b686a43594372534552302a2e68747470733a2f2f737065652e63682f352f716c56784d38343153517563797665504e4366716c4e6f322e504e4762020801", "signature_is_valid": true, "signing_channel": { "claim_id": "8f23ab0341dea395384415427d49911958ca442a", "name": "@LBRY-India", "value": { "public_key": "3056301006072a8648ce3d020106052b8104000a034200041cbdbbaf8358b79614254d8a99dfa6eef9e7b36253f3e24a355202b3d2d5d3b8c2c8a1cb0608c94be87cb700419d3aabb2c5707383029998a144728242908ca4" } }, "supports": [], "timestamp": 1556777388, "txid": "6eb88662cc4b3e0baf56495cc67443929d21b62975b8cbab3e8d9b7f8e25badc", "valid_at_height": 560777, "value": { "description": "LBRY Is Spreading Like A Virus, Hold Tight Hodlers\nA lot of people are hearing about LBRY, if you've \nalready heard of us, hold tight cos a lot is about to turn ...\n\nSupport us lets create more awareness about LBRY and the future \nof decentralized sharing.\n\nDonations are very much welcome. Thank you.\nDonation add: bWdZueAN5bkep4Z941ezXiKALkhjCYCrSE", "languages": [ "en" ], "license": "Creative Commons Attribution 4.0 International", "license_url": "https://creativecommons.org/licenses/by/4.0/legalcode", "source": { "media_type": "video/mp4", "sd_hash": "834d077d71758d3acae63b87b8d0a583ac26959c6e52bb8c9852391bbf65fd22474b1d4f734b7afac0b9e016f39115e3" }, "thumbnail": { "url": "https://spee.ch/5/qlVxM841SQucyvePNCfqlNo2.PNG" }, "title": "LBRY Is Spreading Like A Virus, Hold Tight Hodlers" } }, "claims_in_channel": 0 } } ``` in 38: ``` (lbry-venv) C:\Users\thoma\Documents\lbry>lbrynet resolve eight { "eight": { "address": "bESZeiLFPA2bNwszKh6XS16cD79or9NgKq", "amount": "570.0", "canonical_url": "lbry://@LBRY-India#8/eight#0", "claim_id": "07e89510f537d63741b7d370cb3049610e9cdfe0", "claim_op": "update", "confirmations": 26208, "height": 560760, "is_change": false, "is_channel_signature_valid": true, "is_mine": false, "meta": { "activation_height": 557079, "creation_height": 557073, "creation_timestamp": 1556184553, "effective_amount": "570.0", "expiration_height": 2659473, "is_controlling": true, "support_amount": "0.0", "trending_global": 0.0, "trending_group": 0, "trending_local": 0.0, "trending_mixed": 0.0 }, "name": "eight", "normalized_name": "eight", "nout": 0, "permanent_url": "lbry://eight#07e89510f537d63741b7d370cb3049610e9cdfe0", "short_url": "lbry://eight#0", "signing_channel": { "address": "bWAbWicEdPTh6fnQZN2Bwv86VX1Xkm5ebZ", "amount": "1.0", "canonical_url": "lbry://@LBRY-India#8", "claim_id": "8f23ab0341dea395384415427d49911958ca442a", "claim_op": "create", "confirmations": 30797, "height": 556171, "is_change": false, "is_mine": false, "meta": { "activation_height": 556171, "claims_in_channel": 11, "creation_height": 556171, "creation_timestamp": 1556040690, "effective_amount": "1.0", "expiration_height": 2658571, "is_controlling": true, "support_amount": "0.0", "trending_global": 0.0, "trending_group": 0, "trending_local": 0.0, "trending_mixed": 0.0 }, "name": "@LBRY-India", "normalized_name": "@lbry-india", "nout": 0, "permanent_url": "lbry://@LBRY-India#8f23ab0341dea395384415427d49911958ca442a", "short_url": "lbry://@LBRY-India#8", "timestamp": 1556040690, "txid": "cc604d77dcc1d400d9249add8fb0f2785740f42ae0cb891f6964ad0e879a5463", "type": "claim", "value": { "public_key": "3056301006072a8648ce3d020106052b8104000a034200041cbdbbaf8358b79614254d8a99dfa6eef9e7b36253f3e24a355202b3d2d5d3b8c2c8a1cb0608c94be87cb700419d3aabb2c5707383029998a144728242908ca4", "public_key_id": "bMxFG5weZK8k3YyqhFHvRucUaT6Q6tGESx" }, "value_type": "channel" }, "timestamp": 1556777388, "txid": "6eb88662cc4b3e0baf56495cc67443929d21b62975b8cbab3e8d9b7f8e25badc", "type": "claim", "value": { "description": "LBRY Is Spreading Like A Virus, Hold Tight Hodlers\nA lot of people are hearing about LBRY, if you've \nalready heard of us, hold tight cos a lot is about to turn ...\n\nSupport us lets create more awareness about LBRY and the future \nof decentralized sharing.\n\nDonations are very much welcome. Thank you.\nDonation add: bWdZueAN5bkep4Z941ezXiKALkhjCYCrSE", "languages": [ "en" ], "license": "Creative Commons Attribution 4.0 International", "license_url": "https://creativecommons.org/licenses/by/4.0/legalcode", "source": { "media_type": "video/mp4", "sd_hash": "834d077d71758d3acae63b87b8d0a583ac26959c6e52bb8c9852391bbf65fd22474b1d4f734b7afac0b9e016f39115e3" }, "stream_type": "video", "thumbnail": { "url": "https://spee.ch/5/qlVxM841SQucyvePNCfqlNo2.PNG" }, "title": "LBRY Is Spreading Like A Virus, Hold Tight Hodlers" }, "value_type": "stream" } }```
NetOpWibby commented 2019-08-21 19:56:09 +02:00 (Migrated from github.com)

The meme part of the playground doesn't work but the other two examples work.

The meme part of the playground doesn't work but the other two examples work.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry.tech#288
No description provided.