@heyanon/sdk 2.1.6 → 2.1.8
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
CHANGED
package/dist/adapter/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AiTool } from '../ai';
|
|
2
2
|
import { EVM, Solana, TON, WalletType } from '../blockchain';
|
|
3
3
|
import { Hex, PublicClient, SignMessageReturnType, SignTypedDataParameters as ViemSignTypedDataParameters, SignTypedDataReturnType } from 'viem';
|
|
4
|
-
import { Connection, PublicKey } from '@solana/web3.js';
|
|
4
|
+
import { Connection, PublicKey, Transaction as SolanaTransaction, VersionedTransaction as SolanaVersionedTransaction } from '@solana/web3.js';
|
|
5
5
|
import { AdapterTag } from './misc';
|
|
6
6
|
import { Address as TonAddress } from '@ton/ton';
|
|
7
7
|
export interface FunctionReturn {
|
|
@@ -19,6 +19,7 @@ export interface SolanaFunctionOptions {
|
|
|
19
19
|
readonly getConnection: () => Connection;
|
|
20
20
|
readonly getPublicKey: () => Promise<PublicKey>;
|
|
21
21
|
readonly sendTransactions: (props: Solana.types.SendTransactionProps) => Promise<Solana.types.TransactionReturn>;
|
|
22
|
+
readonly signTransactions?: (transactions: Solana.types.SignTransactionProps[]) => Promise<(SolanaTransaction | SolanaVersionedTransaction)[]>;
|
|
22
23
|
}
|
|
23
24
|
export interface TonFunctionOptions {
|
|
24
25
|
readonly getAddress: () => Promise<TonAddress>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PublicKey, TransactionSignature, VersionedTransaction } from '@solana/web3.js';
|
|
1
|
+
import { PublicKey, TransactionSignature, VersionedTransaction, Transaction } from '@solana/web3.js';
|
|
2
2
|
export interface TransactionReturnData {
|
|
3
3
|
readonly message: string;
|
|
4
4
|
readonly hash: TransactionSignature;
|
|
@@ -10,3 +10,7 @@ export interface SendTransactionProps {
|
|
|
10
10
|
readonly account: PublicKey;
|
|
11
11
|
readonly transactions: VersionedTransaction[];
|
|
12
12
|
}
|
|
13
|
+
export interface SignTransactionProps {
|
|
14
|
+
readonly transaction: VersionedTransaction | Transaction;
|
|
15
|
+
readonly signName?: 'sign' | 'partialSign';
|
|
16
|
+
}
|
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
|
|