Swagger:

http://62.146.171.217:33000/api#/

测试命令:

curl -X GET '<http://62.146.171.217:33000/v1/pools?projectId=0x8A53Faa2e5710580419BA26Feefc1dC6Ec42094b&timestampGte=1735660800>'

{
  "code": 0,
  "message": "Success.",
  "data": [
    {
      "poolId": "0xeca3824d5245050d6c38f86b8ad266d161d2f35697e61be16fe832784bea5b1c",
      "poolAddress": "0xc0E4463bcBAe1329d5F4a6121a15E5b79f5e85f8", // 合约地址 对应 Transaction Link
      "poolCreateAt": "2025-01-17T13:44:54.136Z", // 对应 Apply Date 默认是UTC时区 显示可能需要转东八区?
      "allocationId": "0xc9586da04e8e70385589ccb4aabbf67effb896c3383c9fcdc6fcd4232fb20152",
      "allocationTitle": "2024 Dec Forge WG Salary (Stable Coin)", // 对应 Reason
      "projectId": "0x8A53Faa2e5710580419BA26Feefc1dC6Ec42094b", // 对应 Source
      "creator": "0x016df27C5a9e479AB01e3053CD5a1967f96eCD6E",
      "depositor": "0x2491d138b18AEd4429bDF9e98cAE003d57F4e4fC",
      "details": [
        {
          "wallet": "0x884bf6FAF266f5dD098ed7cE16EDD96f213dB97f", // 对应 Address
          "amount": "90.38", // 对应 Reward
          "ratio": 1310000,
          "token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
          "status": "UNCLAIMED"
        },
        {
          "wallet": "0x86DBe1f56dC3053b26522de1B38289E39AFCF884",
          "amount": "95.9",
          "ratio": 1390000,
          "token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
          "status": "UNCLAIMED"
        },
        {
          "wallet": "0x97B7F8fDB22d5BAb6C0AcF3Cd319eC18da8063c3",
          "amount": "843.08",
          "ratio": 12220000,
          "token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
          "status": "CLAIMED"
        },
        {
          "wallet": "0xC30559a69C2654cdB7F1e04200037F026D941313",
          "amount": "175.93",
          "ratio": 2540000,
          "token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
          "status": "CLAIMED"
        },
        {
          "wallet": "0xbB6B49f0545d7F81eFc13C782a418511ca0041fd",
          "amount": "371.87",
          "ratio": 5390000,
          "token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
          "status": "CLAIMED"
        },
        {
          "wallet": "0xC841D6DdF66467Af551b35218c0c2e22f9C14b48",
          "amount": "1597.16",
          "ratio": 23150000,
          "token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
          "status": "CLAIMED"
        },
        {
          "wallet": "0x9B741aE8474172F4C3F019f41Cbb515151145fa8",
          "amount": "33.81",
          "ratio": 490000,
          "token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
          "status": "CLAIMED"
        },
        {
          "wallet": "0x99bbb439a42abb119015c6d3099C3355De0Def1B",
          "amount": "1241.17",
          "ratio": 17980000,
          "token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
          "status": "CLAIMED"
        },
        {
          "wallet": "0x0cAd61916d2E15E6b71eB9f9489802Fda12Ae4A3",
          "amount": "111.77",
          "ratio": 1620000,
          "token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
          "status": "CLAIMED"
        },
        {
          "wallet": "0x5F27efB3d4a38c36d0D24673f1c5344E709675E2",
          "amount": "225.6",
          "ratio": 3270000,
          "token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
          "status": "CLAIMED"
        },
        {
          "wallet": "0x4021F1A8A45d295a8B3E33797Fb2a0a12b4A6d2b",
          "amount": "161.44",
          "ratio": 2340000,
          "token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
          "status": "CLAIMED"
        },
        {
          "wallet": "0x7605545301e10B667B866C56A437F2FB246de737",
          "amount": "120.05",
          "ratio": 1740000,
          "token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
          "status": "CLAIMED"
        },
        {
          "wallet": "0x702566BED3CDf6804CB807f3489DFe567a6a1CBf",
          "amount": "401.53",
          "ratio": 5820000,
          "token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
          "status": "CLAIMED"
        },
        {
          "wallet": "0x17c57bD297175e5711Ee3Daf045252B588f3162F",
          "amount": "1429.51",
          "ratio": 20720000,
          "token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
          "status": "CLAIMED"
        }
      ]
    }
  ]
}

TODO:

  1. amount 精度是6位
  2. Reason → Title field in Allocation table
  3. ApplyDate → CreateTime field in IncentivePool table
  4. 时间筛选 按照时间戳