|
@@ -14,6 +14,7 @@ import {
|
|
|
} from '@initia/initia.js'
|
|
|
import { generateRandomString, getAxiosClient } from './utils'
|
|
|
import { HttpsProxyAgent } from 'https-proxy-agent'
|
|
|
+import { generateNSTProxyAgent } from 'useless-helpers'
|
|
|
|
|
|
export const rpcUrl = ['https://lcd.testnet.initia.xyz']
|
|
|
|
|
@@ -36,17 +37,7 @@ export abstract class BaseClient {
|
|
|
})
|
|
|
const rpc = rpcUrl[Math.floor(Math.random() * rpcUrl.length)]
|
|
|
this.rpcUrlUsing = rpc
|
|
|
- const pass = `test1234_session-${generateRandomString(8)}_lifetime-20m`
|
|
|
- const proxyAgent = useProxy
|
|
|
- ? new HttpsProxyAgent(`http://tuxla:${pass}@geo.iproyal.com:12321`)
|
|
|
- : undefined
|
|
|
- const username = `u3e4c2852572e05c5-zone-custom-session-${generateRandomString(
|
|
|
- 9,
|
|
|
- )}-sessTime-20`
|
|
|
- const password = 'u3e4c2852572e05c5'
|
|
|
- // const proxyAgent = new HttpsProxyAgent(
|
|
|
- // `http://${username}:${password}@43.152.113.55:2334`,
|
|
|
- // )
|
|
|
+ const proxyAgent = generateNSTProxyAgent('FF6C6D7483C30CC9', 'monad123')
|
|
|
|
|
|
const requester = new APIRequester(rpc, {
|
|
|
httpsAgent: proxyAgent,
|