sei-agent-kit
Version:
A package for building AI agents on the SEI blockchain
31 lines • 1.76 kB
TypeScript
import { ContractsConfig } from "@bancor/carbon-sdk/contracts-api";
import { Toolkit } from "@bancor/carbon-sdk/strategy-management";
import { SeiAgentKit } from "../../agent";
import { Address } from "viem";
export declare const UINT256_MAX: bigint;
export declare const carbonConfig: ContractsConfig;
export type StrategyType = "disposable" | "recurring";
export declare function getStrategyTypeParams(type: StrategyType, baseToken: string, quoteToken: string, buyBudget: string | undefined, sellBudget: string | undefined, buyRange: string | string[] | undefined, sellRange: string | string[] | undefined): Promise<{
buyPriceLow: string;
buyPriceMarginal: string;
buyPriceHigh: string;
sellPriceLow: string;
sellPriceMarginal: string;
sellPriceHigh: string;
buyBudget: string;
sellBudget: string;
}>;
export declare function getOverlappingStrategyParams(carbonSDK: Toolkit, baseToken: string, quoteToken: string, buyPriceLowRaw: string | undefined, sellPriceHighRaw: string | undefined, buyBudgetRaw: string | undefined, sellBudgetRaw: string | undefined, fee: number, range: number, marketPriceOverride: string | undefined): Promise<{
buyPriceLow: string;
buyPriceMarginal: string;
buyPriceHigh: string;
sellPriceLow: string;
sellPriceMarginal: string;
sellPriceHigh: string;
buyBudget: string;
sellBudget: string;
}>;
export declare const getAllTokenDecimals: (agent: SeiAgentKit, tokenAddress: Address) => Promise<number>;
export declare const getCarbonTokenAddress: (seiKit: SeiAgentKit, tokenTicker: string) => Promise<Address>;
export declare const carbonERC20InfiniteApproval: (agent: SeiAgentKit, tokenAddress: Address, spender: Address) => void;
//# sourceMappingURL=utils.d.ts.map