@heyanon/sdk 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,3 @@
1
1
  export * from './types';
2
2
  export * from './transformers';
3
+ export * from './misc';
@@ -0,0 +1,7 @@
1
+ export declare enum AdapterTag {
2
+ ALM = "ALM",
3
+ STAKE = "Stake",
4
+ LENDING = "Lending",
5
+ FARM = "Farm",
6
+ PERPETUALS = "Perpetuals"
7
+ }
@@ -2,6 +2,7 @@ import { AiTool } from '../ai';
2
2
  import { EVM, Solana } from '../blockchain';
3
3
  import { Hex, PublicClient, SignMessageReturnType, SignTypedDataParameters as ViemSignTypedDataParameters, SignTypedDataReturnType, Address } from 'viem';
4
4
  import { Connection, PublicKey } from '@solana/web3.js';
5
+ import { AdapterTag } from './misc';
5
6
  export interface FunctionReturn {
6
7
  readonly success: boolean;
7
8
  readonly data: string;
@@ -29,5 +30,6 @@ export interface AdapterExport {
29
30
  readonly tools: AiTool[];
30
31
  readonly functions: Record<string, (args: any, options: FunctionOptions) => Promise<FunctionReturn>>;
31
32
  readonly description: string;
33
+ readonly tags?: AdapterTag[];
32
34
  }
33
35
  export {};
package/dist/index.js CHANGED
@@ -18,6 +18,16 @@ function toResult(data = "", error = false) {
18
18
  };
19
19
  }
20
20
 
21
+ // src/adapter/misc.ts
22
+ var AdapterTag = /* @__PURE__ */ ((AdapterTag2) => {
23
+ AdapterTag2["ALM"] = "ALM";
24
+ AdapterTag2["STAKE"] = "Stake";
25
+ AdapterTag2["LENDING"] = "Lending";
26
+ AdapterTag2["FARM"] = "Farm";
27
+ AdapterTag2["PERPETUALS"] = "Perpetuals";
28
+ return AdapterTag2;
29
+ })(AdapterTag || {});
30
+
21
31
  // src/blockchain/evm/index.ts
22
32
  var evm_exports = {};
23
33
  __export(evm_exports, {
@@ -523,6 +533,7 @@ async function retry(fn, options) {
523
533
  // src/utils/sleep.ts
524
534
  var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
525
535
 
536
+ exports.AdapterTag = AdapterTag;
526
537
  exports.Chain = Chain;
527
538
  exports.EVM = evm_exports;
528
539
  exports.Solana = solana_exports;
package/dist/index.mjs CHANGED
@@ -16,6 +16,16 @@ function toResult(data = "", error = false) {
16
16
  };
17
17
  }
18
18
 
19
+ // src/adapter/misc.ts
20
+ var AdapterTag = /* @__PURE__ */ ((AdapterTag2) => {
21
+ AdapterTag2["ALM"] = "ALM";
22
+ AdapterTag2["STAKE"] = "Stake";
23
+ AdapterTag2["LENDING"] = "Lending";
24
+ AdapterTag2["FARM"] = "Farm";
25
+ AdapterTag2["PERPETUALS"] = "Perpetuals";
26
+ return AdapterTag2;
27
+ })(AdapterTag || {});
28
+
19
29
  // src/blockchain/evm/index.ts
20
30
  var evm_exports = {};
21
31
  __export(evm_exports, {
@@ -521,4 +531,4 @@ async function retry(fn, options) {
521
531
  // src/utils/sleep.ts
522
532
  var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
523
533
 
524
- export { Chain, evm_exports as EVM, solana_exports as Solana, allChains, allEvmChains, retry, sleep, toResult };
534
+ export { AdapterTag, Chain, evm_exports as EVM, solana_exports as Solana, allChains, allEvmChains, retry, sleep, toResult };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyanon/sdk",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",