@@ -24,6 +24,11 @@ import {
2424 getFundingRounds ,
2525 getFundingRoundsInvestors ,
2626 getAcquisitionDeals ,
27+ getTokenUnlockAllocations ,
28+ getTokenUnlockEvents ,
29+ getTokenUnlockSupportedAssets ,
30+ getTokenUnlocks ,
31+ getTokenUnlockVestingSchedule ,
2732} from "@messari-kit/types" ;
2833import type {
2934 createChatCompletionParameters ,
@@ -72,6 +77,16 @@ import type {
7277 getFundingRoundsInvestorsResponse ,
7378 getAcquisitionDealsParameters ,
7479 getAcquisitionDealsResponse ,
80+ getTokenUnlockAllocationsParameters ,
81+ getTokenUnlockAllocationsResponse ,
82+ getTokenUnlockEventsParameters ,
83+ getTokenUnlockEventsResponse ,
84+ getTokenUnlockSupportedAssetsParameters ,
85+ getTokenUnlockSupportedAssetsResponse ,
86+ getTokenUnlocksParameters ,
87+ getTokenUnlocksResponse ,
88+ getTokenUnlockVestingScheduleParameters ,
89+ getTokenUnlockVestingScheduleResponse ,
7590} from "@messari-kit/types" ;
7691import type { Agent } from "node:http" ;
7792import { pick } from "../utils" ;
@@ -98,6 +113,7 @@ import type {
98113 NewsInterface ,
99114 RecapsAPIInterface ,
100115 ResearchInterface ,
116+ TokenUnlocksInterface ,
101117} from "./base" ;
102118import { MessariClientBase } from "./base" ;
103119
@@ -810,4 +826,51 @@ export class MessariClient extends MessariClientBase {
810826 } ) ;
811827 } ,
812828 } ;
829+
830+ public readonly tokenUnlocks : TokenUnlocksInterface = {
831+ getSupportedAssets : async ( params : getTokenUnlockSupportedAssetsParameters = { } , options ?: RequestOptions ) => {
832+ return this . request < getTokenUnlockSupportedAssetsResponse > ( {
833+ method : getTokenUnlockSupportedAssets . method ,
834+ path : getTokenUnlockSupportedAssets . path ( ) ,
835+ queryParams : pick ( params , getTokenUnlockSupportedAssets . queryParams ) ,
836+ options,
837+ } ) ;
838+ } ,
839+
840+ getAllocations : async ( params : getTokenUnlockAllocationsParameters = { } , options ?: RequestOptions ) => {
841+ return this . request < getTokenUnlockAllocationsResponse > ( {
842+ method : getTokenUnlockAllocations . method ,
843+ path : getTokenUnlockAllocations . path ( ) ,
844+ queryParams : pick ( params , getTokenUnlockAllocations . queryParams ) ,
845+ options,
846+ } ) ;
847+ } ,
848+
849+ getVestingSchedule : async ( params : getTokenUnlockVestingScheduleParameters , options ?: RequestOptions ) => {
850+ return this . request < getTokenUnlockVestingScheduleResponse > ( {
851+ method : getTokenUnlockVestingSchedule . method ,
852+ path : getTokenUnlockVestingSchedule . path ( params ) ,
853+ queryParams : pick ( params , getTokenUnlockVestingSchedule . queryParams ) ,
854+ options,
855+ } ) ;
856+ } ,
857+
858+ getUnlocks : async ( params : getTokenUnlocksParameters , options ?: RequestOptions ) => {
859+ return this . request < getTokenUnlocksResponse > ( {
860+ method : getTokenUnlocks . method ,
861+ path : getTokenUnlocks . path ( params ) ,
862+ queryParams : pick ( params , getTokenUnlocks . queryParams ) ,
863+ options,
864+ } ) ;
865+ } ,
866+
867+ getEvents : async ( params : getTokenUnlockEventsParameters , options ?: RequestOptions ) => {
868+ return this . request < getTokenUnlockEventsResponse > ( {
869+ method : getTokenUnlockEvents . method ,
870+ path : getTokenUnlockEvents . path ( params ) ,
871+ queryParams : pick ( params , getTokenUnlockEvents . queryParams ) ,
872+ options,
873+ } ) ;
874+ } ,
875+ } ;
813876}
0 commit comments