@heyanon/sdk 2.4.5 → 2.4.6

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,3 +1,2 @@
1
1
  export * from './types';
2
2
  export * from './transformers';
3
- export * from './misc';
@@ -2,7 +2,6 @@ import { OpenAI } from 'openai';
2
2
  import { EVM, Solana, TON, WalletType, Chain } from '../blockchain';
3
3
  import { PublicClient, SignMessageReturnType, SignTypedDataReturnType, Address } from 'viem';
4
4
  import { Connection, PublicKey, Transaction as SolanaTransaction, VersionedTransaction as SolanaVersionedTransaction } from '@solana/web3.js';
5
- import { AdapterTag } from './misc';
6
5
  import { Address as TonAddress } from '@ton/ton';
7
6
  import { DeployContractProps, SignMessagesProps, SignTypedDatasProps } from '../blockchain/evm/types';
8
7
  import { Exchange, exchanges } from 'ccxt';
@@ -160,7 +159,6 @@ export interface FunctionOptions {
160
159
  * ```typescript
161
160
  * const myAdapter: AdapterExport = {
162
161
  * chains: [Chain.Ethereum, Chain.Polygon],
163
- * tags: [AdapterTag.DeFi, AdapterTag.DEX],
164
162
  * description: "Swap tokens on decentralized exchanges",
165
163
  * functions: {
166
164
  * swap: async (args, options) => ({ success: true, data: "Swap completed" })
@@ -173,8 +171,8 @@ export interface FunctionOptions {
173
171
  export interface AdapterExport {
174
172
  /** Supported blockchain networks */
175
173
  readonly chains: Chain[];
176
- /** Adapter tags for categorization */
177
- readonly tags: AdapterTag[];
174
+ /** Adapter name */
175
+ readonly name: string;
178
176
  /** Adapter description */
179
177
  readonly description: string;
180
178
  /** Available adapter functions */
package/dist/index.js CHANGED
@@ -1225,24 +1225,6 @@ function toResult(data, error = false) {
1225
1225
  };
1226
1226
  }
1227
1227
 
1228
- // src/adapter/misc.ts
1229
- var AdapterTag = /* @__PURE__ */ ((AdapterTag2) => {
1230
- AdapterTag2["ALM"] = "ALM";
1231
- AdapterTag2["STAKE"] = "Stake";
1232
- AdapterTag2["LENDING"] = "Lending";
1233
- AdapterTag2["FARM"] = "Farm";
1234
- AdapterTag2["PERPETUALS"] = "Perpetuals";
1235
- AdapterTag2["BRIDGE"] = "Bridge";
1236
- AdapterTag2["LIMIT_ORDER"] = "Limit orders";
1237
- AdapterTag2["DEX"] = "DEX";
1238
- AdapterTag2["LP"] = "LP";
1239
- AdapterTag2["GAMES"] = "Games";
1240
- AdapterTag2["CEX"] = "CEX";
1241
- AdapterTag2["LAUNCHPAD"] = "Launchpad";
1242
- return AdapterTag2;
1243
- })(AdapterTag || {});
1244
-
1245
- exports.AdapterTag = AdapterTag;
1246
1228
  exports.Chain = Chain;
1247
1229
  exports.EVM = evm_exports;
1248
1230
  exports.MessagesReleaser = MessagesReleaser;
package/dist/index.mjs CHANGED
@@ -1223,21 +1223,4 @@ function toResult(data, error = false) {
1223
1223
  };
1224
1224
  }
1225
1225
 
1226
- // src/adapter/misc.ts
1227
- var AdapterTag = /* @__PURE__ */ ((AdapterTag2) => {
1228
- AdapterTag2["ALM"] = "ALM";
1229
- AdapterTag2["STAKE"] = "Stake";
1230
- AdapterTag2["LENDING"] = "Lending";
1231
- AdapterTag2["FARM"] = "Farm";
1232
- AdapterTag2["PERPETUALS"] = "Perpetuals";
1233
- AdapterTag2["BRIDGE"] = "Bridge";
1234
- AdapterTag2["LIMIT_ORDER"] = "Limit orders";
1235
- AdapterTag2["DEX"] = "DEX";
1236
- AdapterTag2["LP"] = "LP";
1237
- AdapterTag2["GAMES"] = "Games";
1238
- AdapterTag2["CEX"] = "CEX";
1239
- AdapterTag2["LAUNCHPAD"] = "Launchpad";
1240
- return AdapterTag2;
1241
- })(AdapterTag || {});
1242
-
1243
- export { AdapterTag, Chain, evm_exports as EVM, MessagesReleaser, solana_exports as Solana, ton_exports as TON, TryStepsExecutor, WalletType, WorkflowAction, WorkflowBreakError, WorkflowContext, WorkflowResult, WorkflowRetry, allChains, allEvmChains, getTimestamp, isAddress, normalizeAddress, retry, sleep, stringify, toResult };
1226
+ export { Chain, evm_exports as EVM, MessagesReleaser, solana_exports as Solana, ton_exports as TON, TryStepsExecutor, WalletType, WorkflowAction, WorkflowBreakError, WorkflowContext, WorkflowResult, WorkflowRetry, allChains, allEvmChains, getTimestamp, isAddress, normalizeAddress, retry, sleep, stringify, toResult };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyanon/sdk",
3
- "version": "2.4.5",
3
+ "version": "2.4.6",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,49 +0,0 @@
1
- /**
2
- * Tags for categorizing different types of adapters in the ecosystem
3
- * @enum AdapterTag
4
- * @example
5
- * ```typescript
6
- * // Using in adapter configuration
7
- * const swapAdapter: AdapterExport = {
8
- * tags: [AdapterTag.DEX, AdapterTag.LP],
9
- * // ... other properties
10
- * };
11
- *
12
- * // Filtering adapters by tag
13
- * const dexAdapters = adapters.filter(adapter =>
14
- * adapter.tags.includes(AdapterTag.DEX)
15
- * );
16
- *
17
- * // Multiple tags for complex protocols
18
- * const compoundAdapter = {
19
- * tags: [AdapterTag.LENDING, AdapterTag.FARM],
20
- * // ... other properties
21
- * };
22
- * ```
23
- */
24
- export declare enum AdapterTag {
25
- /** Automated Liquidity Management protocols */
26
- ALM = "ALM",
27
- /** Staking protocols and validators */
28
- STAKE = "Stake",
29
- /** Lending and borrowing protocols */
30
- LENDING = "Lending",
31
- /** Yield farming and liquidity mining */
32
- FARM = "Farm",
33
- /** Perpetual trading and derivatives */
34
- PERPETUALS = "Perpetuals",
35
- /** Cross-chain bridges */
36
- BRIDGE = "Bridge",
37
- /** Limit order protocols */
38
- LIMIT_ORDER = "Limit orders",
39
- /** Decentralized exchanges */
40
- DEX = "DEX",
41
- /** Liquidity provision protocols */
42
- LP = "LP",
43
- /** Gaming and GameFi protocols */
44
- GAMES = "Games",
45
- /** Centralized exchange integrations */
46
- CEX = "CEX",
47
- /** Token launchpads and IDO platforms */
48
- LAUNCHPAD = "Launchpad"
49
- }