Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

fix(PE-5512): accept a validity query param that returns interactio … #100

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

dtfiedler
Copy link
Collaborator

curl http://localhost:3000/v1/contract/_NctcA2sRy1-J4OmIQZbYFPM17piNcbdBPH2ncX2RL8?validity=true

Result:

{
    "contractTxId": "_NctcA2sRy1-J4OmIQZbYFPM17piNcbdBPH2ncX2RL8",
    "state": {},
    "sortKey": "000001351345,0000000000000,014656a8d455295307d89dc8904e8b9b10f3106d3becf09748e467ffb674ded5",
    "evaluationOptions": {
        "sourceType": "arweave"
    },
    "validity": {
        "-Nwd7XkeX4p_W72OZ3TkpKLIOA0KGIUb9pCIIaq2QGI": true,
        "-O3lf7QgVr_PIIVHsNRyKdrFPzlyDJsZdKz29XbQnpQ": true,
        "-XR5cPcjpGosshJxlFpg-P6zPMi7JjhdFleiSi9Kwb8": true,
        "-j3Xbg0IuHOk0bVeG-i16G0mRAdJi-i6sqwTTB9UWs8": true,
        "-sUQHCDSonMtlYpZqCqwbRiCJUyBjOx7m9W6eRHzEXU": true,
        "-vlGuHiZhj7h9Bu580Q5Z2-s4KwbRO5zjb5aG5w1jJg": true,
        "0Dl6Ftx75NM20xw4BdTISIdlpjl3qHDu8VbMTx89NU4": true,
        "1G2U2DY7z5BlmI808mzrc9KEfloW1wlDglDuddlb8CY": true,
        "1HXxk74FzRG1iPwk92HZq3JB3B_dxFz836rxCysuVtI": true,
        "45rBsTntFUxDxIDn049aQ1omvBNwFEX3aiJHJ3dE_vo": true,
        "4Tu-A7THPMh4sHUNZS2TZGZ18ZO9ECt0fgALV35UX-4": true,
        "4y-pvdwI1NFzT-BYx4RqR7hAS70hHtYWZdQDv5iRim4": true,
        "6eBUahnBSvsX0DcFB2sB6YH7xZfBwu5YU6V8_iYnkaM": true,
        "72EOTBgY5DolbrnT3FDJd75Lm54J0q0aq_pyCt78FMA": true,
        "7SYQPrgDG8AnIU5kQ-rH3RFuZ2UIOBEziHu55LLt2gU": true,
        "9CSp9iILh0fQ71EXTUSTv9faYu8dJCkbts4iz3iOPZk": true,
        "9_F0IJT6EQqGDWm2mfuFReny_pAhnoxC3kutxLAPzNc": true,
        "AyUFieKJIo9uYSSJEC7pOp5WZzFTPfdAr4Ux_zaKEuw": true,
        "BcV2ZqjH_E03acfAiJ2iwjxG-OARxbkWkGodBOAbFZE": true,
        "Bpn6hoiM8ecQ3E8jMLELKnAUrj1LluYHVX6eGJJR84E": true,
        "BtglVH2d7S54kI2CPIXBk7XdWIX6k8pCkuvSjaHKXWo": true,
        "C3Qnedjv_T8eGLdP5LeoBo4fhYsJmwUjbCZK0-iW4T0": true,
        "E04elRnfgD3abtELYucmwA-_JKHchiE3xLcEp97A1h0": true,
        "EctDEMK8L8YbNmLiuVQYhX-jomfOdNcIyyT3qbQIgRQ": true,
        "EfRZhQuycTM78J1d7XgrWnHTePCreNBaJH1ZXFLDAnI": true,
        "FN6eKSfT_8mzV6WK_Fkhv_dLcJNl5gPh8GDQmVN76mc": true,
        "H0aORdpCyoRmJLzHmOK29IB9K5u0SAUqzTQwwCuM_7s": true,
        "I-3u4o27EkfZRb8CA4llsumOKteYekWKpCmT6_cl3dA": true,
        "II7jX2WuvRoNF2csw0p8TPIWZ3h4VgnLmEzelXMLs3Y": true,
        "Il_brcorcpMyN9EG2VxnpH5f1saCddYNoRxFPn-PC7A": true,
        "K2HEqsXz0a2KZjhGHi0krdUWNY0BYo9r13mpRbxztPo": true,
        "KSS92mHMCoLNSUsrhNvy4j_zgUlfzp_JCcX7wlAG_TA": true,
        "Kki1EN9plgWNfAVsrv_TECg4Hgq7zh3NJjQjRFp2PVc": true,
        "MTxlj_nAvqwat-J45XepCQLLhfRr_fuAw_UZS0XEynA": true,
        "O16CpKBx78aYXJAOeJHnWasSR3t8REXA4oOxsS1bYJQ": true,
        "O1U7lZ0lDytIJWMQFqI3P0EYOgtxODYl2eMmX_orLOo": true,
        "OV3QwjbDtmO3zsk2_trNQwj7y0ht0C_GA-77lbgoI8c": true,
        "PchkbT6oZfML58LMIJwycMIbDWM60sIxRLOSCoiu1Rg": true,
        "RXYI9pbenQJtb0j8pShHt_Hpkqjb7qm4VnQA1QzcLw8": true,
        "RuzBwNE-lETQM7_jnKl1TMb7Wa_zNPPD-mJ7Yp4Q8f8": true,
        "S9z3eZQm6Wt9ugROKJRynmrd_MPHJaloCvyaPeNtQ-4": true,
        "SVKvguCQ_PneW6aVrziBwyaQFwGzUmQI5sPCsmbq5Kk": false,
        "TdfjOPHNQTVlg-3Ok6Kfd739XBfEIJgt0Y4CQfLvmT0": true,
        "V1mRdxa1KGZAn_iLb4QngJ_Dn1KSAo2Nzgy_ai25jiU": true,
        "XjyH5AWFNK7kXM8QotTaUA5Nql76HYCyezcgsrs26PU": true,
        "XxA9dhS8o8FPM3nauxyYlVVrTlUmpv2dkSXbFOQbOLA": true,
        "_0r8TPkJz306brkVP5Aizkd3AbVCkIKRfLKXyCiQxQA": true,
        "_5DumQ--tcbkOZlGOA4Yy1LhECSs6bScmQ5Pu4p7ZsA": true,
        "aIkZckkc4GRFK_oPFf3iQ3N0OlHsPrx6kkMYRsrV3dI": true,
        "bhOPe_ENNJ2unbGCfeyovAyuvbrAh4c58fsx09oFN4E": true,
        "d9TFbsZLVTNPTDy38UaQQUrQ43c0PCm4GKPYQqP0G88": true,
        "dpCt_0JXVKXmoOStYuFWGP5CfrSdx-62yoOzdk9xF5c": true,
        "eBkRaVQZa3FAKH8IG-EaFCXqFJfpkZi-LayJ9ALuf1I": true,
        "et5F19lIiD14VPTnx5kp01rhtPvE2YdqO9VhkzoHj6k": true,
        "f0Ii6UCwnGWWIrVtCiHmHbL0jDqqFiJq9pdtGmHyeSQ": true,
        "gLtvGaIvmOBEzNkMhwOYttzOgrYw82bSccNrNKtjZHg": true,
        "gRWdobxFmXoXqKo0pbWHdtcyD995oEwpmuuAIcuLsS0": true,
        "gexdxbt_miCRR4-ae8vSF6bzonyE-AL2CL6VXfjvkTE": true,
        "gi8K8UntHDsXuqj6mZreDnSIOZhcRszKsqRvD2ZKWXM": true,
        "h2HI3_J5o5vXyugOxJBZSJbDsFnzitQ9eizRASGbhoM": true,
        "hCvDwS6FxH7ANQWLinlwdDsOae-k8Wv1FW6qhlbPZOU": true,
        "iPUC5zadXmsG_tzRsD1MNHE5zoKGC5kpHOoSqk0oEK8": true,
        "k3wSJeY-Y7nF5VHRzaN-77-bZg2rBdxBhZaap4HtZXs": true,
        "l8Z-ixfBEAxFRGyepvoosNeIOqggvBPrtBo48lVP1Os": true,
        "mK1ZqfUoQgAyuQ6sM1PrmQoOGPD31PLJTVCvrnSHlfo": true,
        "n2vmMjoVg8xa6o4qD8YVuX5muTVuoehjNW_qt1ihlk4": false,
        "oDeZ1nH8AAPkhHvCjSqNIR4Rh3sVzbKBU7y_zyAk2TY": true,
        "oIW2bMdeq-m6p44_QhWb8Mm7Gq5PjTy7BQGWfkIZlaU": true,
        "olGsof0_qCm3y7zyNDVDEH_FAjSWhnZHfD1SWyE7XLA": true,
        "p7cfrurh3UxpKX5OtqjAbJwwBrbpRrP_ykmKIkeQUhM": true,
        "pGrVh4TOsv2ovgE0fP6SMtzB5Y19U2P1i1dXS7fcM4M": true,
        "pV5Q-VUeJ7FUrZBHwz857pHuSydDVNd7_j1t__Do_Wk": true,
        "qbENbFunvZ8IrbPICas4dTxSeY2qy1hlWn_eBD68mqk": true,
        "qouuJIy1Prl8H--yRlLsqfD35ARBGfxrvvibxaWa2Fk": true,
        "s9u-G_yIQIFZa7nZM6Affkyc35Iri372nVwE9-dQDuw": true,
        "sD8smEqx-2bSLqirytTwFplRikE03jIBJmbEkqWm5A0": true,
        "sXCUnFrZb-Ti9vnkpdblsYz18JeqfhzfqpSRtkVYbC0": true,
        "semI1NXlnekl6Va09b4vTsWlFkYUFXdoYF3XvS_fI-g": true,
        "tgHhOwa_BM77brs0gfwSf9JDL6_XKWIFLCzMLGHmON8": true,
        "uqTN-K6rh6zkfE2nj1ZRjrDMSF6q7m-yuWy1nJTIJeo": true,
        "v1TkkHfcRGqzuPfMahUXACM2boA0nPgc4NXwwINx07w": true,
        "w9Nu85GBm0rtJBxR50P0u0mA1Zy7XXG6tu4HvR4pXQo": true,
        "wVhiOFzCASCiQs5TafPhNF3SfMXfV5e2K0xE3-HaTPk": true,
        "wdT97PwL7QlTp1p6I-XO53wLkRiLurtQFOPgiy8wOw0": true,
        "x1kjbGV56RgxEPHyDE0DfBhVfhOOYsBLyJfFbju-tuM": true,
        "xQ3LDwAfLAhvBK6QIVChLB11IHp6Y--ITKBEyPHNH88": true,
        "zE_jrEBtLb_pEfa8BeW4NGGDIkd5uqC6IIIPcWEy6T4": true,
        "zbLva6wAnrnZzX-B7r1FeKWh67NWSaVlaEx9IwG4_xk": true
    }
}

@dtfiedler dtfiedler requested a review from a team as a code owner January 26, 2024 18:45
@dtfiedler dtfiedler changed the title fix(validity): accept a validity query param that returns interactio … fix(PE-5512): accept a validity query param that returns interactio … Jan 26, 2024
…id and if they were valid or not

This is actually a miss when implementing `syncState` functionality. There is a related bug in the warp-sdk that does not default this value when not set - which is how we discovered this was an issue.
@dtfiedler dtfiedler force-pushed the PE-5512-validity-query branch from 43b4cc5 to 4d10b3c Compare January 26, 2024 18:51
Copy link
Contributor

@fedellen fedellen left a comment

Choose a reason for hiding this comment

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

this is valid

@dtfiedler dtfiedler merged commit c98a2ab into main Jan 26, 2024
6 checks passed
@dtfiedler dtfiedler deleted the PE-5512-validity-query branch January 26, 2024 18:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants