optimise imports
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
52e2495356
commit
1ed10c8e12
|
@ -1,5 +1,5 @@
|
|||
import BN from 'bn.js';
|
||||
import Big from 'big.js';
|
||||
import BN from 'bn.js';
|
||||
|
||||
export class I80F48Dto {
|
||||
constructor(public val: BN) {}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { I80F48, I80F48Dto } from './I80F48';
|
||||
import {
|
||||
Keypair,
|
||||
PublicKey,
|
||||
|
@ -6,11 +5,9 @@ import {
|
|||
Transaction,
|
||||
TransactionInstruction,
|
||||
} from '@solana/web3.js';
|
||||
import { MangoClient } from '../../client';
|
||||
import { debugAccountMetas } from '../../utils';
|
||||
import bs58 from 'bs58';
|
||||
import { BorshAccountsCoder, ProgramAccount } from '@project-serum/anchor';
|
||||
import { group } from 'console';
|
||||
import { MangoClient } from '../../client';
|
||||
import { I80F48, I80F48Dto } from './I80F48';
|
||||
|
||||
export class Bank {
|
||||
public depositIndex: I80F48;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import { BN } from '@project-serum/anchor';
|
||||
import {
|
||||
AccountMeta,
|
||||
Keypair,
|
||||
PublicKey,
|
||||
Transaction,
|
||||
TransactionInstruction,
|
||||
} from '@solana/web3.js';
|
||||
import { MangoClient } from '../../client';
|
||||
import { Bank } from './bank';
|
||||
import { I80F48, I80F48Dto } from './I80F48';
|
||||
import { MangoClient } from '../../client';
|
||||
import { BN } from '@project-serum/anchor';
|
||||
import { AccountMeta } from '@solana/web3.js';
|
||||
|
||||
export class MangoAccount {
|
||||
public tokens: TokenAccount[];
|
||||
|
|
|
@ -4,9 +4,9 @@ import {
|
|||
Transaction,
|
||||
TransactionInstruction,
|
||||
} from '@solana/web3.js';
|
||||
import { MangoClient } from '../../client';
|
||||
import * as bs58 from 'bs58';
|
||||
import BN from 'bn.js';
|
||||
import * as bs58 from 'bs58';
|
||||
import { MangoClient } from '../../client';
|
||||
|
||||
export class Serum3Market {
|
||||
static from(
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
import { Provider, Wallet, web3 } from '@project-serum/anchor';
|
||||
import { Connection, Keypair, PublicKey } from '@solana/web3.js';
|
||||
import * as spl from '@solana/spl-token';
|
||||
import { Connection, Keypair, PublicKey } from '@solana/web3.js';
|
||||
import fs from 'fs';
|
||||
import { MangoClient } from './client';
|
||||
import { findOrCreate } from './utils';
|
||||
import {
|
||||
Bank,
|
||||
getBank,
|
||||
|
@ -11,6 +9,7 @@ import {
|
|||
getMintInfoForTokenIndex,
|
||||
registerToken,
|
||||
} from './accounts/types/bank';
|
||||
import { createGroup, getGroupForAdmin, Group } from './accounts/types/group';
|
||||
import {
|
||||
createMangoAccount,
|
||||
deposit,
|
||||
|
@ -19,19 +18,19 @@ import {
|
|||
MangoAccount,
|
||||
withdraw,
|
||||
} from './accounts/types/mangoAccount';
|
||||
import { createGroup, getGroupForAdmin, Group } from './accounts/types/group';
|
||||
import {
|
||||
createStubOracle,
|
||||
getStubOracleForGroupAndMint,
|
||||
StubOracle,
|
||||
} from './accounts/types/oracle';
|
||||
import {
|
||||
getSerum3MarketForBaseAndQuote,
|
||||
serum3CreateOpenOrders,
|
||||
Serum3Market,
|
||||
serum3RegisterMarket,
|
||||
} from './accounts/types/serum3';
|
||||
import {
|
||||
createStubOracle,
|
||||
getStubOracleForGroupAndMint,
|
||||
StubOracle,
|
||||
} from './accounts/types/oracle';
|
||||
import { assert } from 'console';
|
||||
import { MangoClient } from './client';
|
||||
import { findOrCreate } from './utils';
|
||||
|
||||
async function main() {
|
||||
//
|
||||
|
|
76
ts/index.ts
76
ts/index.ts
|
@ -1,34 +1,44 @@
|
|||
export * from './client';
|
||||
export {
|
||||
Bank,
|
||||
getBank,
|
||||
getBankForGroupAndMint,
|
||||
getBanksForGroup,
|
||||
registerToken,
|
||||
registerTokenIx,
|
||||
} from './accounts/types/bank';
|
||||
export {
|
||||
createGroup,
|
||||
createGroupIx,
|
||||
getGroupForAdmin,
|
||||
Group,
|
||||
} from './accounts/types/group';
|
||||
export * from './accounts/types/I80F48';
|
||||
export { Bank } from './accounts/types/bank';
|
||||
export { MangoAccount } from './accounts/types/mangoAccount';
|
||||
export { Group } from './accounts/types/group';
|
||||
export { TokenAccountDto } from './accounts/types/mangoAccount';
|
||||
export { TokenAccount } from './accounts/types/mangoAccount';
|
||||
export { Serum3Market } from './accounts/types/serum3';
|
||||
export { StubOracle } from './accounts/types/oracle';
|
||||
export { getGroupForAdmin } from './accounts/types/group';
|
||||
export { createGroupIx } from './accounts/types/group';
|
||||
export { createGroup } from './accounts/types/group';
|
||||
export { registerTokenIx } from './accounts/types/bank';
|
||||
export { registerToken } from './accounts/types/bank';
|
||||
export { getBankForGroupAndMint } from './accounts/types/bank';
|
||||
export { getBanksForGroup } from './accounts/types/bank';
|
||||
export { getBank } from './accounts/types/bank';
|
||||
export { getMangoAccountsForGroupAndOwner } from './accounts/types/mangoAccount';
|
||||
export { getMangoAccountsForGroup } from './accounts/types/mangoAccount';
|
||||
export { getMangoAccount } from './accounts/types/mangoAccount';
|
||||
export { createMangoAccountIx } from './accounts/types/mangoAccount';
|
||||
export { createMangoAccount } from './accounts/types/mangoAccount';
|
||||
export { closeMangoAccountIx } from './accounts/types/mangoAccount';
|
||||
export { closeMangoAccount } from './accounts/types/mangoAccount';
|
||||
export { withdrawIx } from './accounts/types/mangoAccount';
|
||||
export { withdraw } from './accounts/types/mangoAccount';
|
||||
export { depositIx } from './accounts/types/mangoAccount';
|
||||
export { deposit } from './accounts/types/mangoAccount';
|
||||
export { getSerum3MarketForBaseAndQuote } from './accounts/types/serum3';
|
||||
export { serum3RegisterMarketIx } from './accounts/types/serum3';
|
||||
export { serum3RegisterMarket } from './accounts/types/serum3';
|
||||
export { getStubOracleForGroupAndMint } from './accounts/types/oracle';
|
||||
export { setStubOracle } from './accounts/types/oracle';
|
||||
export { createStubOracle } from './accounts/types/oracle';
|
||||
export {
|
||||
closeMangoAccount,
|
||||
closeMangoAccountIx,
|
||||
createMangoAccount,
|
||||
createMangoAccountIx,
|
||||
deposit,
|
||||
depositIx,
|
||||
getMangoAccount,
|
||||
getMangoAccountsForGroup,
|
||||
getMangoAccountsForGroupAndOwner,
|
||||
MangoAccount,
|
||||
TokenAccount,
|
||||
TokenAccountDto,
|
||||
withdraw,
|
||||
withdrawIx,
|
||||
} from './accounts/types/mangoAccount';
|
||||
export {
|
||||
createStubOracle,
|
||||
getStubOracleForGroupAndMint,
|
||||
setStubOracle,
|
||||
StubOracle,
|
||||
} from './accounts/types/oracle';
|
||||
export {
|
||||
getSerum3MarketForBaseAndQuote,
|
||||
Serum3Market,
|
||||
serum3RegisterMarket,
|
||||
serum3RegisterMarketIx,
|
||||
} from './accounts/types/serum3';
|
||||
export * from './client';
|
||||
|
|
7432
ts/mango_v4.ts
7432
ts/mango_v4.ts
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue