goblingold-sdk
Advanced tools
Comparing version 1.2.35 to 1.2.36
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ import { web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { AnchorProvider, Wallet, web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ "use strict"; |
import { web3 } from "@project-serum/anchor"; | ||
export declare function computeBudgetIx(units: number): web3.TransactionInstruction; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export * from "./tokens"; |
@@ -0,0 +0,0 @@ "use strict"; |
import { Protocols } from "../protocols"; | ||
export declare const PROTOCOLS_BY_ASSET: Record<string, Protocols[]>; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { LPTokens, TokenInfo, Tokens } from "./types"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import * as anchor from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ "use strict"; |
import { StakeVault, StrategyVault } from "./types"; | ||
export declare const STAKE_VAULTS: StakeVault[]; | ||
export declare const STRATEGY_VAULTS: StrategyVault[]; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export { GoblinGold } from "./client"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare type TokenPrice = { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Address, AnchorProvider, BN, Idl, Program, web3 } from "@project-serum/anchor"; |
@@ -730,4 +730,4 @@ "use strict"; | ||
const scale = new anchor_1.BN(Math.pow(10, tokens_1.TOKENS[token].decimals)); | ||
const tokenPrice = (_a = prices[token]) !== null && _a !== void 0 ? _a : 0; | ||
totalTvl = totalTvl.add(tvl.div(scale).mul(new anchor_1.BN(tokenPrice))); | ||
const tokenPrice = (_a = prices[token] * 10000) !== null && _a !== void 0 ? _a : 0; | ||
totalTvl = totalTvl.add(tvl.div(scale).mul(new anchor_1.BN(tokenPrice)).div(new anchor_1.BN(10000))); | ||
} | ||
@@ -734,0 +734,0 @@ } |
@@ -0,0 +0,0 @@ export declare enum Protocols { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Idl, web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ "use strict"; |
import { web3 } from "@project-serum/anchor"; | ||
export declare function getMintAddress(token: string): web3.PublicKey; | ||
export declare function findTokenByMint(mint: web3.PublicKey): string; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "goblingold-sdk", | ||
"version": "1.2.35", | ||
"version": "1.2.36", | ||
"description": "GoblinGold TypeScript Client Library", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
# GoblinGold SDK |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ import { web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ import { |
@@ -0,0 +0,0 @@ import { BN, web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ export * from "./tokens"; |
@@ -0,0 +0,0 @@ import { Protocols } from "../protocols"; |
@@ -0,0 +0,0 @@ import { LPTokens, TokenInfo, Tokens } from "./types"; |
@@ -0,0 +0,0 @@ import * as anchor from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ import * as anchor from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ import { utils, web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ export { GoblinGold } from "./client"; |
@@ -0,0 +0,0 @@ import fetch from "isomorphic-unfetch"; |
@@ -873,4 +873,6 @@ import { | ||
const scale = new BN(Math.pow(10, TOKENS[token].decimals)); | ||
const tokenPrice = prices[token] ?? 0; | ||
totalTvl = totalTvl.add(tvl.div(scale).mul(new BN(tokenPrice))); | ||
const tokenPrice = prices[token] * 10000 ?? 0; | ||
totalTvl = totalTvl.add( | ||
tvl.div(scale).mul(new BN(tokenPrice)).div(new BN(10000)) | ||
); | ||
} | ||
@@ -877,0 +879,0 @@ } |
@@ -0,0 +0,0 @@ export enum Protocols { |
@@ -0,0 +0,0 @@ import { Idl, web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ import { BN, Idl, web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ import { Idl, web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ import { Idl, web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ import { Idl, web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ import { Idl, web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ import { web3 } from "@project-serum/anchor"; |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
507824
11254