@heyanon/sdk 2.1.7 → 2.1.9
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.
- package/dist/adapter/misc.d.ts +4 -1
- package/dist/adapter/types.d.ts +9 -1
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/adapter/misc.d.ts
CHANGED
package/dist/adapter/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AiTool } from '../ai';
|
|
2
|
-
import { EVM, Solana, TON, WalletType } from '../blockchain';
|
|
2
|
+
import { EVM, Solana, TON, WalletType, Chain } from '../blockchain';
|
|
3
3
|
import { Hex, PublicClient, SignMessageReturnType, SignTypedDataParameters as ViemSignTypedDataParameters, SignTypedDataReturnType } from 'viem';
|
|
4
4
|
import { Connection, PublicKey, Transaction as SolanaTransaction, VersionedTransaction as SolanaVersionedTransaction } from '@solana/web3.js';
|
|
5
5
|
import { AdapterTag } from './misc';
|
|
@@ -26,12 +26,20 @@ export interface TonFunctionOptions {
|
|
|
26
26
|
readonly getClient: () => Promise<TON.types.Client>;
|
|
27
27
|
readonly sendTransactions: (props: TON.types.SendTransactionProps) => Promise<TON.types.TransactionReturn>;
|
|
28
28
|
}
|
|
29
|
+
export interface UserToken {
|
|
30
|
+
readonly chain: Chain;
|
|
31
|
+
readonly name: string;
|
|
32
|
+
readonly symbol: string;
|
|
33
|
+
readonly address: string;
|
|
34
|
+
readonly decimals: number;
|
|
35
|
+
}
|
|
29
36
|
export interface FunctionOptions {
|
|
30
37
|
readonly evm: EvmFunctionOptions;
|
|
31
38
|
readonly solana: SolanaFunctionOptions;
|
|
32
39
|
readonly ton: TonFunctionOptions;
|
|
33
40
|
readonly notify: (message: string) => Promise<void>;
|
|
34
41
|
readonly getRecipient: (type: WalletType) => Promise<string>;
|
|
42
|
+
readonly getUserTokens: () => Promise<UserToken[]>;
|
|
35
43
|
}
|
|
36
44
|
export interface AdapterExport {
|
|
37
45
|
readonly tools: AiTool[];
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,9 @@ var AdapterTag = /* @__PURE__ */ ((AdapterTag2) => {
|
|
|
27
27
|
AdapterTag2["PERPETUALS"] = "Perpetuals";
|
|
28
28
|
AdapterTag2["BRIDGE"] = "Bridge";
|
|
29
29
|
AdapterTag2["LIMIT_ORDER"] = "Limit orders";
|
|
30
|
+
AdapterTag2["DEX"] = "DEX";
|
|
31
|
+
AdapterTag2["LP"] = "LP";
|
|
32
|
+
AdapterTag2["GAMES"] = "Games";
|
|
30
33
|
return AdapterTag2;
|
|
31
34
|
})(AdapterTag || {});
|
|
32
35
|
|
package/dist/index.mjs
CHANGED
|
@@ -25,6 +25,9 @@ var AdapterTag = /* @__PURE__ */ ((AdapterTag2) => {
|
|
|
25
25
|
AdapterTag2["PERPETUALS"] = "Perpetuals";
|
|
26
26
|
AdapterTag2["BRIDGE"] = "Bridge";
|
|
27
27
|
AdapterTag2["LIMIT_ORDER"] = "Limit orders";
|
|
28
|
+
AdapterTag2["DEX"] = "DEX";
|
|
29
|
+
AdapterTag2["LP"] = "LP";
|
|
30
|
+
AdapterTag2["GAMES"] = "Games";
|
|
28
31
|
return AdapterTag2;
|
|
29
32
|
})(AdapterTag || {});
|
|
30
33
|
|