@haven-fi/solauto-sdk 1.0.663 → 1.0.664
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/local/txSandbox.ts +17 -15
- package/package.json +5 -5
package/local/txSandbox.ts
CHANGED
@@ -17,6 +17,7 @@ import {
|
|
17
17
|
tokenInfo,
|
18
18
|
TransactionsManager,
|
19
19
|
USDC,
|
20
|
+
WBTC,
|
20
21
|
} from "../src";
|
21
22
|
import { getSecretKey } from "./shared";
|
22
23
|
|
@@ -45,29 +46,30 @@ export async function main() {
|
|
45
46
|
});
|
46
47
|
|
47
48
|
await client.initialize({
|
48
|
-
positionId:
|
49
|
+
positionId: 2,
|
49
50
|
// authority: new PublicKey("5UqsR2PGzbP8pGPbXEeXx86Gjz2N2UFBAuFZUSVydAEe"),
|
50
51
|
lpUserAccount: new PublicKey(
|
51
52
|
"GEokw9jqbh6d1xUNA3qaeYFFetbSR5Y1nt7C3chwwgSz"
|
52
53
|
),
|
53
54
|
});
|
54
55
|
|
55
|
-
const transactionItems = [
|
56
|
-
rebalance(client, 300),
|
57
|
-
];
|
58
56
|
|
59
|
-
const
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
57
|
+
// const transactionItems = [
|
58
|
+
// rebalance(client, 300),
|
59
|
+
// ];
|
60
|
+
|
61
|
+
// const txManager = new TransactionsManager(
|
62
|
+
// client,
|
63
|
+
// undefined,
|
64
|
+
// payForTransaction ? "normal" : "only-simulate",
|
65
|
+
// PriorityFeeSetting.Min,
|
66
|
+
// true,
|
67
|
+
// undefined,
|
68
|
+
// { totalRetries: 5 }
|
69
|
+
// );
|
70
|
+
// const statuses = await txManager.clientSend(transactionItems);
|
69
71
|
|
70
|
-
consoleLog(statuses);
|
72
|
+
// consoleLog(statuses);
|
71
73
|
}
|
72
74
|
|
73
75
|
main();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@haven-fi/solauto-sdk",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.664",
|
4
4
|
"main": "dist/index.js",
|
5
5
|
"types": "dist/index.d.ts",
|
6
6
|
"description": "Typescript SDK for the Solauto program on the Solana blockchain",
|
@@ -14,10 +14,10 @@
|
|
14
14
|
"dependencies": {
|
15
15
|
"@coral-xyz/anchor": "^0.30.1",
|
16
16
|
"@jup-ag/api": "=6.0.24",
|
17
|
-
"@metaplex-foundation/umi": "
|
18
|
-
"@metaplex-foundation/umi-bundle-defaults": "
|
19
|
-
"@metaplex-foundation/umi-signer-wallet-adapters": "
|
20
|
-
"@metaplex-foundation/umi-web3js-adapters": "
|
17
|
+
"@metaplex-foundation/umi": "=0.9.1",
|
18
|
+
"@metaplex-foundation/umi-bundle-defaults": "=0.9.1",
|
19
|
+
"@metaplex-foundation/umi-signer-wallet-adapters": "=0.9.1",
|
20
|
+
"@metaplex-foundation/umi-web3js-adapters": "=0.9.1",
|
21
21
|
"@solana/spl-token": "^0.4.0",
|
22
22
|
"@solana/web3.js": "=1.95.8",
|
23
23
|
"@switchboard-xyz/common": "=3.0.12",
|