goblingold-sdk
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -52,4 +52,3 @@ "use strict"; | ||
data_1.STRATEGY_VAULTS.forEach((sVault) => { | ||
const tokenInput = sVault.input.symbol; | ||
const vaultKey = program.vaultKeys[tokenInput]; | ||
const vaultKey = program.vaultKeys[sVault.input.symbol]; | ||
accKeys.push({ accountType: "Vault", publicKey: vaultKey.vaultAccount }); | ||
@@ -66,3 +65,3 @@ accKeys.push({ | ||
const mint = accounts[indx * 2 + 1]; | ||
return Object.assign(Object.assign({}, sVault), { tvl: vault.currentTvl, supply: new anchor_1.BN(mint.supply) }); | ||
return Object.assign(Object.assign({ id: sVault.lp.mintAddress }, sVault), { vaultAccount: program.vaultKeys[sVault.input.symbol].vaultAccount, tvl: vault.currentTvl, supply: new anchor_1.BN(mint.supply) }); | ||
})); | ||
@@ -69,0 +68,0 @@ return this.strategyVaults; |
@@ -64,3 +64,2 @@ import * as anchor from "@project-serum/anchor"; | ||
export declare type StrategyVault = { | ||
id: string; | ||
type: string; | ||
@@ -67,0 +66,0 @@ name: string; |
@@ -58,3 +58,2 @@ "use strict"; | ||
const solanaStrategyBestAPY = { | ||
id: "bestApy-sol", | ||
type: "bestApy", | ||
@@ -73,3 +72,2 @@ name: "Best APY", | ||
const usdcStrategyBestAPY = { | ||
id: "bestApy-usdc", | ||
type: "bestApy", | ||
@@ -88,3 +86,2 @@ name: "Best APY", | ||
const msolStrategyBestAPY = { | ||
id: "bestApy-msol", | ||
type: "bestApy", | ||
@@ -103,3 +100,2 @@ name: "Best APY", | ||
const usdtStrategyBestAPY = { | ||
id: "bestApy-usdt", | ||
type: "bestApy", | ||
@@ -118,3 +114,2 @@ name: "Best APY", | ||
const btcStrategyBestAPY = { | ||
id: "bestApy-btc", | ||
type: "bestApy", | ||
@@ -133,3 +128,2 @@ name: "Best APY", | ||
const soEthStrategyBestAPY = { | ||
id: "bestApy-soEth", | ||
type: "bestApy", | ||
@@ -136,0 +130,0 @@ name: "Best APY", |
{ | ||
"name": "goblingold-sdk", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Client to interact with GoblinGold", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -77,2 +77,3 @@ import { BN, Idl, Provider, setProvider, web3 } from "@project-serum/anchor"; | ||
return { | ||
id: sVault.lp.mintAddress, | ||
...sVault, | ||
@@ -79,0 +80,0 @@ vaultAccount: program.vaultKeys[sVault.input.symbol].vaultAccount, |
@@ -107,3 +107,2 @@ import * as anchor from "@project-serum/anchor"; | ||
export type StrategyVault = { | ||
id : string; | ||
type: string; | ||
@@ -110,0 +109,0 @@ name: string; |
@@ -42,3 +42,2 @@ import { LP_TOKENS, TOKENS, NATIVE_SOL } from "./tokens"; | ||
const solanaStrategyBestAPY: StrategyVault = { | ||
id: "bestApy-sol", | ||
type: "bestApy", | ||
@@ -59,3 +58,2 @@ name: "Best APY", | ||
const usdcStrategyBestAPY: StrategyVault = { | ||
id: "bestApy-usdc", | ||
type: "bestApy", | ||
@@ -77,3 +75,2 @@ name: "Best APY", | ||
const msolStrategyBestAPY: StrategyVault = { | ||
id: "bestApy-msol", | ||
type: "bestApy", | ||
@@ -95,3 +92,2 @@ name: "Best APY", | ||
const usdtStrategyBestAPY: StrategyVault = { | ||
id: "bestApy-usdt", | ||
type: "bestApy", | ||
@@ -113,3 +109,2 @@ name: "Best APY", | ||
const btcStrategyBestAPY: StrategyVault = { | ||
id: "bestApy-btc", | ||
type: "bestApy", | ||
@@ -131,3 +126,2 @@ name: "Best APY", | ||
const soEthStrategyBestAPY: StrategyVault = { | ||
id: "bestApy-soEth", | ||
type: "bestApy", | ||
@@ -134,0 +128,0 @@ name: "Best APY", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
694353
14143