Add stats and trades to bots
This commit is contained in:
@@ -1,23 +1,22 @@
|
||||
import fp from 'fastify-plugin'
|
||||
import {FastifyReply, FastifyRequest, FastifyInstance} from 'fastify'
|
||||
import {FastifyInstance, FastifyReply, FastifyRequest} from 'fastify'
|
||||
import {z} from 'zod'
|
||||
import canonicalize from 'canonicalize'
|
||||
import crypto from 'crypto'
|
||||
import {PrivyClient} from '@privy-io/server-auth'
|
||||
import {ethers} from 'ethers'
|
||||
import dotenv from 'dotenv'
|
||||
import Token from '../../generated/gmxsdk/abis/Token.json' with {type: 'json'}
|
||||
import {ARBITRUM} from '../../generated/gmxsdk/configs/chains.js'
|
||||
import {TOKENS} from '../../generated/gmxsdk/configs/tokens.js'
|
||||
import {CONTRACTS} from '../../generated/gmxsdk/configs/contracts.js'
|
||||
import {getClientForAddress, getTokenDataFromTicker} from './gmx.js'
|
||||
import {Ticker} from '../../generated/ManagingApiTypes.js'
|
||||
import {Address} from 'viem'
|
||||
|
||||
// Load environment variables
|
||||
dotenv.config()
|
||||
|
||||
import Token from '../../generated/gmxsdk/abis/Token.json' with { type: 'json' }
|
||||
import { ARBITRUM } from '../../generated/gmxsdk/configs/chains.js'
|
||||
import { TOKENS } from '../../generated/gmxsdk/configs/tokens.js'
|
||||
import { CONTRACTS } from '../../generated/gmxsdk/configs/contracts.js'
|
||||
import { getClientForAddress, getTokenDataFromTicker } from './gmx.js'
|
||||
import { Ticker } from '../../generated/ManagingApiTypes.js'
|
||||
import { Address } from 'viem'
|
||||
|
||||
/**
|
||||
* Privy Plugin
|
||||
*
|
||||
@@ -72,7 +71,7 @@ export const getPrivyClient = (fastify?: FastifyInstance): PrivyClient => {
|
||||
walletApi: {
|
||||
authorizationPrivateKey: authKey
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user