UNPKG

@goat-sdk/plugin-rugcheck

Version:

<div align="center"> <a href="https://github.com/goat-sdk/goat">

2 lines (1 loc) 2.89 kB
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJBTOGBBUjs = require('./chunk-JBTOGBBU.js');var _chunkEI7MMDWYjs = require('./chunk-EI7MMDWY.js');var _core = require('@goat-sdk/core');function p(i,e,n,c){var d=arguments.length,r=d<3?e:c===null?c=Object.getOwnPropertyDescriptor(e,n):c,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,n,c);else for(var y=i.length-1;y>=0;y--)(m=i[y])&&(r=(d<3?m(r):d>3?m(e,n,r):m(e,n))||r);return d>3&&r&&Object.defineProperty(e,n,r),r}_chunkEI7MMDWYjs.a.call(void 0, p,"_ts_decorate");function t(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}_chunkEI7MMDWYjs.a.call(void 0, t,"_ts_metadata");var s=class{static{_chunkEI7MMDWYjs.a.call(void 0, this,"RugCheckService")}constructor(e){this.api=e}async getRecentlyDetectedTokens(e){return this.api.makeRequest("/stats/new_tokens")}async getTrendingTokens24h(e){return this.api.makeRequest("/stats/trending")}async getMostVotedTokens24h(e){return this.api.makeRequest("/stats/recent")}async getRecentlyVerifiedTokens(e){return this.api.makeRequest("/stats/verified")}async generateTokenReportSummary(e){return this.api.makeRequest(`/tokens/${e.mint}/report/summary`)}};p([_core.Tool.call(void 0, {name:"rugcheck_get_recently_detected_tokens",description:"Get recently detected tokens from RugCheck"}),t("design:type",Function),t("design:paramtypes",[typeof _chunkJBTOGBBUjs.b>"u"?Object:_chunkJBTOGBBUjs.b]),t("design:returntype",Promise)],s.prototype,"getRecentlyDetectedTokens",null);p([_core.Tool.call(void 0, {name:"rugcheck_get_trending_tokens_24h",description:"Get trending tokens in the last 24h from RugCheck"}),t("design:type",Function),t("design:paramtypes",[typeof _chunkJBTOGBBUjs.b>"u"?Object:_chunkJBTOGBBUjs.b]),t("design:returntype",Promise)],s.prototype,"getTrendingTokens24h",null);p([_core.Tool.call(void 0, {name:"rugcheck_get_most_voted_tokens_24h",description:"Get tokens with the most votes in the last 24h from RugCheck"}),t("design:type",Function),t("design:paramtypes",[typeof _chunkJBTOGBBUjs.b>"u"?Object:_chunkJBTOGBBUjs.b]),t("design:returntype",Promise)],s.prototype,"getMostVotedTokens24h",null);p([_core.Tool.call(void 0, {name:"rugcheck_get_recently_verified_tokens",description:"Get recently verified tokens from RugCheck"}),t("design:type",Function),t("design:paramtypes",[typeof _chunkJBTOGBBUjs.b>"u"?Object:_chunkJBTOGBBUjs.b]),t("design:returntype",Promise)],s.prototype,"getRecentlyVerifiedTokens",null);p([_core.Tool.call(void 0, {name:"rugcheck_generate_token_report_summary",description:"Generate a report summary for the given token mint"}),t("design:type",Function),t("design:paramtypes",[typeof _chunkJBTOGBBUjs.a>"u"?Object:_chunkJBTOGBBUjs.a]),t("design:returntype",Promise)],s.prototype,"generateTokenReportSummary",null);exports.a = s;