lib upgrades (#989)
* add rimraf upgrade liters and typescrpt * deduplicate * workflow fix * fix node version * a lot of upgrades to libs * deduplicate * format fix * v0.32.13 * fix * v0.32.14-rc * publish
This commit is contained in:
parent
622008f83b
commit
75c95586dc
|
@ -126,9 +126,9 @@ jobs:
|
|||
path: main
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
node-version: '20'
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install dependencies
|
||||
|
|
|
@ -16,9 +16,9 @@ jobs:
|
|||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
node-version: '20'
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install dependencies
|
||||
|
@ -35,9 +35,9 @@ jobs:
|
|||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
node-version: '20'
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install dependencies
|
||||
|
@ -54,9 +54,9 @@ jobs:
|
|||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
node-version: '20'
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Duplicates check
|
||||
|
@ -70,9 +70,9 @@ jobs:
|
|||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
node-version: '20'
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install dependencies
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
ts/client/src/mango_v4.ts
|
||||
ts/client/src/mango_v4.ts
|
||||
ts/client/scripts/**
|
File diff suppressed because it is too large
Load Diff
31
package.json
31
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@blockworks-foundation/mango-v4",
|
||||
"version": "0.32.12",
|
||||
"version": "0.32.14",
|
||||
"description": "Typescript Client for mango-v4 program.",
|
||||
"repository": "https://github.com/blockworks-foundation/mango-v4",
|
||||
"author": {
|
||||
|
@ -38,8 +38,8 @@
|
|||
"@types/chai": "^4.3.0",
|
||||
"@types/mocha": "^9.1.0",
|
||||
"@types/node": "^18.11.18",
|
||||
"@typescript-eslint/eslint-plugin": "^7.17.0",
|
||||
"@typescript-eslint/parser": "^7.17.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.0.1",
|
||||
"@typescript-eslint/parser": "^8.0.1",
|
||||
"axios": "^1.4.0",
|
||||
"chai": "^4.3.4",
|
||||
"cli-table3": "^0.6.3",
|
||||
|
@ -55,8 +55,8 @@
|
|||
"ts-node": "^10.9.1",
|
||||
"tsx": "^4.15.7",
|
||||
"tweetnacl": "1.0.3",
|
||||
"typedoc": "^0.22.5",
|
||||
"typescript": "^5.4.5"
|
||||
"typedoc": "^0.26.5",
|
||||
"typescript": "^5.5.4"
|
||||
},
|
||||
"prettier": {
|
||||
"singleQuote": true,
|
||||
|
@ -64,35 +64,36 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@blockworks-foundation/mango-v4-settings": "0.14.24",
|
||||
"@blockworks-foundation/mangolana": "0.0.18",
|
||||
"@coral-xyz/anchor": "^0.28.1-beta.2",
|
||||
"@blockworks-foundation/mangolana": "0.1.0",
|
||||
"@coral-xyz/anchor": "^0.29.0",
|
||||
"@eslint/eslintrc": "^3.1.0",
|
||||
"@eslint/js": "^9.8.0",
|
||||
"@iarna/toml": "2.2.5",
|
||||
"@project-serum/serum": "0.13.65",
|
||||
"@pythnetwork/client": "~2.14.0",
|
||||
"@pythnetwork/client": "~2.21.1",
|
||||
"@raydium-io/raydium-sdk": "^1.3.1-beta.57",
|
||||
"@solana/spl-token": "0.3.7",
|
||||
"@solana/web3.js": "^1.78.2",
|
||||
"@switchboard-xyz/common": "^2.4.2",
|
||||
"@switchboard-xyz/on-demand": "^1.2.15",
|
||||
"@solana/spl-token": "0.4.8",
|
||||
"@solana/web3.js": "^1.95.2",
|
||||
"@switchboard-xyz/common": "^2.4.4",
|
||||
"@switchboard-xyz/on-demand": "^1.2.16",
|
||||
"@switchboard-xyz/sbv2-lite": "^0.1.6",
|
||||
"@switchboard-xyz/solana.js": "^2.5.4",
|
||||
"@switchboard-xyz/solana.js": "^3.2.5",
|
||||
"big.js": "^6.1.1",
|
||||
"binance-api-node": "^0.12.0",
|
||||
"binance-api-node": "^0.12.7",
|
||||
"bs58": "^5.0.0",
|
||||
"cross-fetch": "^3.1.5",
|
||||
"dotenv": "^16.0.3",
|
||||
"fast-copy": "^3.0.1",
|
||||
"lodash": "^4.17.21",
|
||||
"node-kraken-api": "^2.2.2",
|
||||
"rimraf": "6.0.1",
|
||||
"switchboard-anchor": "npm:@coral-xyz/anchor@0.30.1"
|
||||
},
|
||||
"resolutions": {
|
||||
"**/@solana/web3.js/node-fetch": "npm:@blockworks-foundation/node-fetch@2.6.11",
|
||||
"**/cross-fetch/node-fetch": "npm:@blockworks-foundation/node-fetch@2.6.11",
|
||||
"**/@blockworks-foundation/mangolana/node-fetch": "npm:@blockworks-foundation/node-fetch@2.6.11",
|
||||
"strip-ansi": "6.0.1"
|
||||
"strip-ansi": "7.0.1"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
import fs from 'fs';
|
||||
import * as toml from '@iarna/toml';
|
||||
import { option, publicKey, struct, u64, u8 } from '@raydium-io/raydium-sdk';
|
||||
import { bs58, decodeString } from '@switchboard-xyz/common';
|
||||
import { decodeString } from '@switchboard-xyz/common';
|
||||
import {
|
||||
asV0Tx,
|
||||
CrossbarClient,
|
||||
|
@ -60,7 +60,7 @@ const PYTH_USDC_ORACLE =
|
|||
const SWITCHBOARD_USDC_ORACLE = 'FwYfsmj5x8YZXtQBNo2Cz8TE7WRCMFqA6UTffK4xQKMH';
|
||||
const CLUSTER: Cluster =
|
||||
(process.env.CLUSTER_OVERRIDE as Cluster) || 'mainnet-beta';
|
||||
const CLUSTER_URL =
|
||||
const CLUSTER_URL =
|
||||
process.env.CLUSTER_URL_OVERRIDE || process.env.MB_CLUSTER_URL;
|
||||
|
||||
const USER_KEYPAIR =
|
||||
|
@ -71,12 +71,12 @@ async function setupAnchor() {
|
|||
const connection = new Connection(CLUSTER_URL!, options);
|
||||
const user = Keypair.fromSecretKey(
|
||||
Buffer.from(
|
||||
JSON.parse(
|
||||
fs.readFileSync(USER_KEYPAIR!, {
|
||||
encoding: 'utf-8',
|
||||
}),
|
||||
),
|
||||
|
||||
JSON.parse(
|
||||
fs.readFileSync(USER_KEYPAIR!, {
|
||||
encoding: 'utf-8',
|
||||
}),
|
||||
),
|
||||
),
|
||||
);
|
||||
//@ts-ignore
|
||||
const userWallet = new Wallet(user);
|
||||
|
|
|
@ -949,7 +949,6 @@ export class HealthCache {
|
|||
// - be careful about finding the minFnValue: the function isn't convex
|
||||
|
||||
const initialRatio = this.healthRatio(HealthType.init);
|
||||
|
||||
|
||||
const healthCacheClone: HealthCache = deepClone<HealthCache>(this);
|
||||
const sourceIndex = healthCacheClone.getOrCreateTokenInfoIndex(sourceBank);
|
||||
|
|
Loading…
Reference in New Issue