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 vesting details #353

Merged
merged 1 commit into from
Feb 23, 2022
Merged

add vesting details #353

merged 1 commit into from
Feb 23, 2022

Conversation

alexcos20
Copy link
Member

Closes #350


query {
 
 vestings(orderBy: endBlock){
  id,
  user{id},
  token{id,symbol}
  endBlock,
  amount,
  vestingHistory{
    vesting{
      id,
      user{id}
    }
    amount,
    block
  }
}
}

=====>

{
  "data": {
    "vestings": [
      {
        "amount": "10000",
        "endBlock": "2500021",
        "id": "0x91eb42b164664cb28a09b0cf9651b404ee105afa-0x4bde0b170fad51cbb917311e5f9b0e272c8b9729",
        "token": {
          "id": "0x4bde0b170fad51cbb917311e5f9b0e272c8b9729",
          "symbol": "ERC20DT1Symbol"
        },
        "user": {
          "id": "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
        },
        "vestingHistory": []
      },
      {
        "amount": "10000",
        "endBlock": "2500030",
        "id": "0x91eb42b164664cb28a09b0cf9651b404ee105afa-0x48878c6a90de17e0a9352629ba388077da3a3f55",
        "token": {
          "id": "0x48878c6a90de17e0a9352629ba388077da3a3f55",
          "symbol": "ERC20DT1Symbol"
        },
        "user": {
          "id": "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
        },
        "vestingHistory": []
      },
      {
        "amount": "10000",
        "endBlock": "2500047",
        "id": "0x91eb42b164664cb28a09b0cf9651b404ee105afa-0xd8d8c3d5081674687a185e249235f02572bb6bba",
        "token": {
          "id": "0xd8d8c3d5081674687a185e249235f02572bb6bba",
          "symbol": "ERC20DT1Symbol"
        },
        "user": {
          "id": "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
        },
        "vestingHistory": []
      },
      {
        "amount": "10000",
        "endBlock": "2500119",
        "id": "0x91eb42b164664cb28a09b0cf9651b404ee105afa-0xe0927a292d668b78998ce11f6d96e46df7ed2b5f",
        "token": {
          "id": "0xe0927a292d668b78998ce11f6d96e46df7ed2b5f",
          "symbol": "ERC20DT1Symbol"
        },
        "user": {
          "id": "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
        },
        "vestingHistory": []
      },
      {
        "amount": "10000",
        "endBlock": "2500120",
        "id": "0x91eb42b164664cb28a09b0cf9651b404ee105afa-0xbde8f2087cdce20dc9e0d6a51f5b1752a5621764",
        "token": {
          "id": "0xbde8f2087cdce20dc9e0d6a51f5b1752a5621764",
          "symbol": "ERC20DT1Symbol2"
        },
        "user": {
          "id": "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
        },
        "vestingHistory": []
      },
      {
        "amount": "10000",
        "endBlock": "2500123",
        "id": "0x91eb42b164664cb28a09b0cf9651b404ee105afa-0xe68fe6492798ef7a7f6c9766d1b111aa50fa0a86",
        "token": {
          "id": "0xe68fe6492798ef7a7f6c9766d1b111aa50fa0a86",
          "symbol": "ERC20DT1Symbol"
        },
        "user": {
          "id": "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
        },
        "vestingHistory": [
          {
            "amount": "0.004",
            "block": "124",
            "vesting": {
              "id": "0x91eb42b164664cb28a09b0cf9651b404ee105afa-0xe68fe6492798ef7a7f6c9766d1b111aa50fa0a86",
              "user": {
                "id": "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
              }
            }
          }
        ]
      },
      {
        "amount": "10000",
        "endBlock": "2500133",
        "id": "0x91eb42b164664cb28a09b0cf9651b404ee105afa-0x1b053c851600526eabf43f9b3a512a9872068428",
        "token": {
          "id": "0x1b053c851600526eabf43f9b3a512a9872068428",
          "symbol": "ERC20DT1Symbol"
        },
        "user": {
          "id": "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
        },
        "vestingHistory": [
          {
            "amount": "0.004",
            "block": "134",
            "vesting": {
              "id": "0x91eb42b164664cb28a09b0cf9651b404ee105afa-0x1b053c851600526eabf43f9b3a512a9872068428",
              "user": {
                "id": "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
              }
            }
          }
        ]
      }
    ]
  }
}

@alexcos20 alexcos20 added this to the V4 milestone Feb 21, 2022
@alexcos20 alexcos20 requested a review from mihaisc February 21, 2022 13:04
@alexcos20 alexcos20 self-assigned this Feb 21, 2022
@alexcos20 alexcos20 merged commit 5918c8b into v4main Feb 23, 2022
@alexcos20 alexcos20 deleted the feature/ssContracts branch February 23, 2022 15:47
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.

SideStaking: fetch vesting information
2 participants