mirror of
https://github.com/d0zingcat/solana-agent-kit.git
synced 2026-05-30 15:11:22 +00:00
feat: Create tasks on Gibwork
This commit is contained in:
@@ -34,10 +34,12 @@ import {
|
||||
getMainAllDomainsDomain,
|
||||
getOwnedAllDomains,
|
||||
resolveAllDomains,
|
||||
create_gibwork_task,
|
||||
} from "../tools";
|
||||
import {
|
||||
CollectionDeployment,
|
||||
CollectionOptions,
|
||||
GibworkCreateTaskReponse,
|
||||
JupiterTokenData,
|
||||
MintCollectionNFTResponse,
|
||||
PumpfunLaunchResponse,
|
||||
@@ -229,7 +231,7 @@ export class SolanaAgentKit {
|
||||
|
||||
async getOwnedDomainsForTLD(
|
||||
tld: string
|
||||
):Promise<string[]> {
|
||||
): Promise<string[]> {
|
||||
return getOwnedDomainsForTLD(this, tld);
|
||||
}
|
||||
|
||||
@@ -318,4 +320,25 @@ export class SolanaAgentKit {
|
||||
async pythFetchPrice(priceFeedID: string): Promise<string> {
|
||||
return pythFetchPrice(priceFeedID);
|
||||
}
|
||||
|
||||
async createGibworkTask(
|
||||
title: string,
|
||||
content: string,
|
||||
requirements: string,
|
||||
tags: string[],
|
||||
tokenMintAddress: string,
|
||||
tokenAmount: number,
|
||||
payer?: string
|
||||
): Promise<GibworkCreateTaskReponse> {
|
||||
return create_gibwork_task(
|
||||
this,
|
||||
title,
|
||||
content,
|
||||
requirements,
|
||||
tags,
|
||||
new PublicKey(tokenMintAddress),
|
||||
tokenAmount,
|
||||
payer ? new PublicKey(payer) : undefined
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user