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 reuse order #444

Merged
merged 4 commits into from
May 25, 2022
Merged

add reuse order #444

merged 4 commits into from
May 25, 2022

Conversation

mihaisc
Copy link
Contributor

@mihaisc mihaisc commented May 25, 2022

Fixes #443

query:

{
  orders {
    id
    createdTimestamp
    block
    tx
    reuses {
      id
      caller
      createdTimestamp
      tx
      block
    }
  }
}

response:

 {
        "block": 10702626,
        "createdTimestamp": 1652955129,
        "id": "0x439ab70d8008578461637fac8955ccf2dc53bfb0a7cf1d50439936fc808f99e1-0xe3b2698a266eeb3a4378b789ff237a73386a1f94-0x2e33c6014222a47585605f8379a1877eaaf0ec13",
        "reuses": [
          {
            "block": "10723637",
            "caller": "0x2e33c6014222a47585605f8379a1877eaaf0ec13",
            "createdTimestamp": "1653270868",
            "id": "0x0fbc25642ddc150c2611f8bd8464d09742487a40853fb6bdb7c48021791f8cd2",
            "tx": "0x0fbc25642ddc150c2611f8bd8464d09742487a40853fb6bdb7c48021791f8cd2"
          },
          {
            "block": "10719971",
            "caller": "0x2e33c6014222a47585605f8379a1877eaaf0ec13",
            "createdTimestamp": "1653215783",
            "id": "0x21af7e0a00e827b5549e8fabed53575ea5750fbf80a1fc4cf37d923b99817e92",
            "tx": "0x21af7e0a00e827b5549e8fabed53575ea5750fbf80a1fc4cf37d923b99817e92"
          },
          {
            "block": "10703778",
            "caller": "0x2e33c6014222a47585605f8379a1877eaaf0ec13",
            "createdTimestamp": "1652972437",
            "id": "0x4e19caa039b0f54206ef80f4182b6ee3d13385117a9156c6015d10041983a653",
            "tx": "0x4e19caa039b0f54206ef80f4182b6ee3d13385117a9156c6015d10041983a653"
          },
          {
            "block": "10729103",
            "caller": "0x2e33c6014222a47585605f8379a1877eaaf0ec13",
            "createdTimestamp": "1653353026",
            "id": "0x509c8d145109114cf373b82b8b584c82f3b19e262be0079465de695d076d5089",
            "tx": "0x509c8d145109114cf373b82b8b584c82f3b19e262be0079465de695d076d5089"
          },
          {
            "block": "10730384",
            "caller": "0x2e33c6014222a47585605f8379a1877eaaf0ec13",
            "createdTimestamp": "1653372281",
            "id": "0x5f131bf0480e81caed9067a67137bd4568b0647b621222805b9413013ac0d0bc",
            "tx": "0x5f131bf0480e81caed9067a67137bd4568b0647b621222805b9413013ac0d0bc"
          },
          {

Copy link
Member

@jamiehewitt15 jamiehewitt15 left a comment

Choose a reason for hiding this comment

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

Looks good. Tested it locally and it works as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for OrderReused
2 participants