@chainstream-io/sdk 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -0
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +77 -61
- package/dist/esm/openapi/apis/BlockchainApi.js +118 -0
- package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.js +109 -0
- package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.js +69 -0
- package/dist/esm/openapi/apis/DexApi.js +347 -0
- package/dist/esm/openapi/apis/DexPoolApi.js +87 -0
- package/dist/esm/openapi/apis/EndpointApi.js +316 -0
- package/dist/esm/openapi/apis/IpfsApi.js +68 -0
- package/dist/esm/openapi/apis/JobsApi.js +107 -0
- package/dist/esm/openapi/{src/apis → apis}/RankingApi.js +278 -249
- package/dist/esm/openapi/apis/RedPacketApi.js +454 -0
- package/dist/esm/openapi/apis/TokenApi.js +1837 -0
- package/dist/esm/openapi/apis/TradeApi.js +450 -0
- package/dist/esm/openapi/apis/TransactionApi.js +73 -0
- package/dist/esm/openapi/apis/WalletApi.js +272 -0
- package/dist/esm/openapi/apis/WatchlistApi.js +87 -0
- package/dist/esm/openapi/{src/runtime.js → runtime.js} +81 -69
- package/dist/esm/stream/index.d.ts +3 -0
- package/dist/esm/stream/index.js +3 -0
- package/dist/{api → esm/stream}/stream.d.ts +1 -1
- package/dist/esm/{api → stream}/stream.js +36 -29
- package/dist/{api → esm/stream}/stream.model.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +92 -76
- package/dist/openapi/apis/BlockchainApi.js +122 -0
- package/dist/openapi/apis/DefiSolanaMoonshotApi.js +113 -0
- package/dist/openapi/apis/DefiSolanaPumpfunApi.js +73 -0
- package/dist/openapi/apis/DexApi.js +351 -0
- package/dist/openapi/apis/DexPoolApi.js +91 -0
- package/dist/openapi/apis/EndpointApi.js +320 -0
- package/dist/openapi/apis/IpfsApi.js +72 -0
- package/dist/openapi/apis/JobsApi.js +111 -0
- package/dist/openapi/{src/apis → apis}/RankingApi.js +279 -283
- package/dist/openapi/apis/RedPacketApi.js +458 -0
- package/dist/openapi/apis/TokenApi.js +1841 -0
- package/dist/openapi/apis/TradeApi.js +454 -0
- package/dist/openapi/apis/TransactionApi.js +77 -0
- package/dist/openapi/apis/WalletApi.js +276 -0
- package/dist/openapi/apis/WatchlistApi.js +91 -0
- package/dist/openapi/{src/runtime.js → runtime.js} +81 -69
- package/dist/stream/index.d.ts +3 -0
- package/dist/stream/index.js +19 -0
- package/dist/{esm/api → stream}/stream.d.ts +1 -1
- package/dist/{api → stream}/stream.js +36 -29
- package/dist/{esm/api → stream}/stream.model.d.ts +1 -1
- package/package.json +29 -29
- package/dist/esm/openapi/src/apis/BlockchainApi.js +0 -101
- package/dist/esm/openapi/src/apis/DefiSolanaMoonshotApi.js +0 -92
- package/dist/esm/openapi/src/apis/DefiSolanaPumpfunApi.js +0 -56
- package/dist/esm/openapi/src/apis/DexApi.js +0 -318
- package/dist/esm/openapi/src/apis/DexPoolApi.js +0 -74
- package/dist/esm/openapi/src/apis/EndpointApi.js +0 -279
- package/dist/esm/openapi/src/apis/IpfsApi.js +0 -55
- package/dist/esm/openapi/src/apis/JobsApi.js +0 -90
- package/dist/esm/openapi/src/apis/RedPacketApi.js +0 -413
- package/dist/esm/openapi/src/apis/TokenApi.js +0 -1748
- package/dist/esm/openapi/src/apis/TradeApi.js +0 -425
- package/dist/esm/openapi/src/apis/TransactionApi.js +0 -60
- package/dist/esm/openapi/src/apis/WalletApi.js +0 -247
- package/dist/esm/openapi/src/apis/WatchlistApi.js +0 -74
- package/dist/openapi/src/apis/BlockchainApi.js +0 -138
- package/dist/openapi/src/apis/DefiSolanaMoonshotApi.js +0 -129
- package/dist/openapi/src/apis/DefiSolanaPumpfunApi.js +0 -93
- package/dist/openapi/src/apis/DexApi.js +0 -355
- package/dist/openapi/src/apis/DexPoolApi.js +0 -111
- package/dist/openapi/src/apis/EndpointApi.js +0 -316
- package/dist/openapi/src/apis/IpfsApi.js +0 -92
- package/dist/openapi/src/apis/JobsApi.js +0 -127
- package/dist/openapi/src/apis/RedPacketApi.js +0 -450
- package/dist/openapi/src/apis/TokenApi.js +0 -1785
- package/dist/openapi/src/apis/TradeApi.js +0 -462
- package/dist/openapi/src/apis/TransactionApi.js +0 -97
- package/dist/openapi/src/apis/WalletApi.js +0 -284
- package/dist/openapi/src/apis/WatchlistApi.js +0 -111
- package/src/api/stream.fields.ts +0 -271
- package/src/api/stream.model.ts +0 -307
- package/src/api/stream.ts +0 -1086
- package/src/index.ts +0 -188
- package/src/openapi/src/apis/BlockchainApi.ts +0 -140
- package/src/openapi/src/apis/DefiSolanaMoonshotApi.ts +0 -145
- package/src/openapi/src/apis/DefiSolanaPumpfunApi.ts +0 -86
- package/src/openapi/src/apis/DexApi.ts +0 -490
- package/src/openapi/src/apis/DexPoolApi.ts +0 -107
- package/src/openapi/src/apis/EndpointApi.ts +0 -421
- package/src/openapi/src/apis/IpfsApi.ts +0 -66
- package/src/openapi/src/apis/JobsApi.ts +0 -135
- package/src/openapi/src/apis/RankingApi.ts +0 -939
- package/src/openapi/src/apis/RedPacketApi.ts +0 -621
- package/src/openapi/src/apis/TokenApi.ts +0 -2569
- package/src/openapi/src/apis/TradeApi.ts +0 -596
- package/src/openapi/src/apis/TransactionApi.ts +0 -95
- package/src/openapi/src/apis/WalletApi.ts +0 -365
- package/src/openapi/src/apis/WatchlistApi.ts +0 -107
- package/src/openapi/src/apis/index.ts +0 -17
- package/src/openapi/src/index.ts +0 -5
- package/src/openapi/src/models/BlockchainDTO.ts +0 -93
- package/src/openapi/src/models/BlockchainLatestBlockDTO.ts +0 -75
- package/src/openapi/src/models/BooleanResultDTO.ts +0 -66
- package/src/openapi/src/models/CalculatePnlInput.ts +0 -65
- package/src/openapi/src/models/Candle.ts +0 -130
- package/src/openapi/src/models/ClaimRedPacketInput.ts +0 -90
- package/src/openapi/src/models/CreateEndpointInput.ts +0 -121
- package/src/openapi/src/models/CreateRedPacketInput.ts +0 -124
- package/src/openapi/src/models/CreateRedPacketReply.ts +0 -75
- package/src/openapi/src/models/CreateTokenInput.ts +0 -139
- package/src/openapi/src/models/CreateTokenReply.ts +0 -75
- package/src/openapi/src/models/DexDTO.ts +0 -90
- package/src/openapi/src/models/DexPage.ts +0 -114
- package/src/openapi/src/models/DexPoolDTO.ts +0 -141
- package/src/openapi/src/models/EndpointListResponse.ts +0 -97
- package/src/openapi/src/models/EndpointOperationResponse.ts +0 -65
- package/src/openapi/src/models/EndpointResponse.ts +0 -145
- package/src/openapi/src/models/EndpointSecretResponse.ts +0 -65
- package/src/openapi/src/models/FilterCondition.ts +0 -135
- package/src/openapi/src/models/GainersAndLosersDTO.ts +0 -93
- package/src/openapi/src/models/GainersAndLosersPage.ts +0 -114
- package/src/openapi/src/models/JobDTO.ts +0 -75
- package/src/openapi/src/models/JobStreamingDTO.ts +0 -75
- package/src/openapi/src/models/Link.ts +0 -88
- package/src/openapi/src/models/MoonshotCreateTokenInput.ts +0 -182
- package/src/openapi/src/models/MoonshotCreateTokenReply.ts +0 -75
- package/src/openapi/src/models/MoonshotSubmitCreateToken200Response.ts +0 -73
- package/src/openapi/src/models/MoonshotSubmitCreateTokenInput.ts +0 -74
- package/src/openapi/src/models/PumpCreateTokenInput.ts +0 -180
- package/src/openapi/src/models/PumpCreateTokenReply.ts +0 -74
- package/src/openapi/src/models/QuoteResponse.ts +0 -105
- package/src/openapi/src/models/RedPacketClaimDTO.ts +0 -148
- package/src/openapi/src/models/RedPacketClaimsPage.ts +0 -110
- package/src/openapi/src/models/RedPacketDTO.ts +0 -229
- package/src/openapi/src/models/RedPacketReply.ts +0 -66
- package/src/openapi/src/models/RedPacketSendTxInput.ts +0 -66
- package/src/openapi/src/models/RedPacketSendTxResponse.ts +0 -66
- package/src/openapi/src/models/RedPacketsPage.ts +0 -110
- package/src/openapi/src/models/Resolution.ts +0 -61
- package/src/openapi/src/models/SendTxInput.ts +0 -93
- package/src/openapi/src/models/SendTxResponse.ts +0 -84
- package/src/openapi/src/models/SwapInput.ts +0 -157
- package/src/openapi/src/models/SwapReply.ts +0 -75
- package/src/openapi/src/models/SwapRouteInput.ts +0 -186
- package/src/openapi/src/models/SwapRouteResponse.ts +0 -101
- package/src/openapi/src/models/Token.ts +0 -251
- package/src/openapi/src/models/TokenCreationDTO.ts +0 -131
- package/src/openapi/src/models/TokenCreationPage.ts +0 -114
- package/src/openapi/src/models/TokenCreatorsDTO.ts +0 -81
- package/src/openapi/src/models/TokenExtraDTO.ts +0 -225
- package/src/openapi/src/models/TokenHolder.ts +0 -93
- package/src/openapi/src/models/TokenHolderPage.ts +0 -114
- package/src/openapi/src/models/TokenListPage.ts +0 -114
- package/src/openapi/src/models/TokenMarketData.ts +0 -190
- package/src/openapi/src/models/TokenMetadata.ts +0 -188
- package/src/openapi/src/models/TokenPage.ts +0 -122
- package/src/openapi/src/models/TokenPriceDTO.ts +0 -93
- package/src/openapi/src/models/TokenPricePage.ts +0 -114
- package/src/openapi/src/models/TokenSocialMediasDTO.ts +0 -161
- package/src/openapi/src/models/TokenStat.ts +0 -1152
- package/src/openapi/src/models/TopTradersDTO.ts +0 -164
- package/src/openapi/src/models/TopTradersPage.ts +0 -114
- package/src/openapi/src/models/TradeDetailDTO.ts +0 -282
- package/src/openapi/src/models/TradeEvent.ts +0 -184
- package/src/openapi/src/models/TradePage.ts +0 -114
- package/src/openapi/src/models/TradeType.ts +0 -53
- package/src/openapi/src/models/UpdateEndpointInput.ts +0 -129
- package/src/openapi/src/models/WalletBalanceDetailDTO.ts +0 -282
- package/src/openapi/src/models/WalletBalancesDTO.ts +0 -92
- package/src/openapi/src/models/WalletPnlDTO.ts +0 -264
- package/src/openapi/src/models/index.ts +0 -72
- package/src/openapi/src/runtime.ts +0 -432
- /package/dist/esm/openapi/{src/apis → apis}/BlockchainApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/DefiSolanaMoonshotApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/DefiSolanaPumpfunApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/DexApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/DexPoolApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/EndpointApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/IpfsApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/JobsApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/RankingApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/RedPacketApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/TokenApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/TradeApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/TransactionApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/WalletApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/WatchlistApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/index.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/index.js +0 -0
- /package/dist/esm/openapi/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/esm/openapi/{src/index.js → index.js} +0 -0
- /package/dist/esm/openapi/{src/models → models}/BlockchainDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/BlockchainDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/BlockchainLatestBlockDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/BlockchainLatestBlockDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/BooleanResultDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/BooleanResultDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CalculatePnlInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CalculatePnlInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/Candle.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/Candle.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/ClaimRedPacketInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/ClaimRedPacketInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateEndpointInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateEndpointInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateRedPacketInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateRedPacketInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateRedPacketReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateRedPacketReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateTokenInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateTokenInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateTokenReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateTokenReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexPoolDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexPoolDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointListResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointListResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointOperationResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointOperationResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointSecretResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointSecretResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/FilterCondition.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/FilterCondition.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/GainersAndLosersDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/GainersAndLosersDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/GainersAndLosersPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/GainersAndLosersPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/JobDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/JobDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/JobStreamingDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/JobStreamingDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/Link.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/Link.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotCreateTokenInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotCreateTokenInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotCreateTokenReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotCreateTokenReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotSubmitCreateToken200Response.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotSubmitCreateToken200Response.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotSubmitCreateTokenInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotSubmitCreateTokenInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/PumpCreateTokenInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/PumpCreateTokenInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/PumpCreateTokenReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/PumpCreateTokenReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/QuoteResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/QuoteResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketClaimDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketClaimDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketClaimsPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketClaimsPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketSendTxInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketSendTxInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketSendTxResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketSendTxResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketsPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketsPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/Resolution.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/Resolution.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SendTxInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SendTxInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SendTxResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SendTxResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapRouteInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapRouteInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapRouteResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapRouteResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/Token.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/Token.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreationDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreationDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreationPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreationPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreatorsDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreatorsDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenExtraDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenExtraDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenHolder.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenHolder.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenHolderPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenHolderPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenListPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenListPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenMarketData.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenMarketData.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenMetadata.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenMetadata.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPriceDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPriceDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPricePage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPricePage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenSocialMediasDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenSocialMediasDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenStat.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenStat.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TopTradersDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TopTradersDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TopTradersPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TopTradersPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeDetailDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeDetailDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeEvent.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeEvent.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradePage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradePage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeType.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeType.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/UpdateEndpointInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/UpdateEndpointInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletBalanceDetailDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletBalanceDetailDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletBalancesDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletBalancesDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletPnlDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletPnlDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/index.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/index.js +0 -0
- /package/dist/esm/openapi/{src/runtime.d.ts → runtime.d.ts} +0 -0
- /package/dist/{api → esm/stream}/stream.fields.d.ts +0 -0
- /package/dist/esm/{api → stream}/stream.fields.js +0 -0
- /package/dist/esm/{api → stream}/stream.model.js +0 -0
- /package/dist/openapi/{src/apis → apis}/BlockchainApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/DefiSolanaMoonshotApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/DefiSolanaPumpfunApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/DexApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/DexPoolApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/EndpointApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/IpfsApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/JobsApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/RankingApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/RedPacketApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/TokenApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/TradeApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/TransactionApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/WalletApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/WatchlistApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/index.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/index.js +0 -0
- /package/dist/openapi/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/openapi/{src/index.js → index.js} +0 -0
- /package/dist/openapi/{src/models → models}/BlockchainDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/BlockchainDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/BlockchainLatestBlockDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/BlockchainLatestBlockDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/BooleanResultDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/BooleanResultDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/CalculatePnlInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CalculatePnlInput.js +0 -0
- /package/dist/openapi/{src/models → models}/Candle.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/Candle.js +0 -0
- /package/dist/openapi/{src/models → models}/ClaimRedPacketInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/ClaimRedPacketInput.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateEndpointInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateEndpointInput.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateRedPacketInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateRedPacketInput.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateRedPacketReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateRedPacketReply.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateTokenInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateTokenInput.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateTokenReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateTokenReply.js +0 -0
- /package/dist/openapi/{src/models → models}/DexDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/DexDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/DexPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/DexPage.js +0 -0
- /package/dist/openapi/{src/models → models}/DexPoolDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/DexPoolDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/EndpointListResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/EndpointListResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/EndpointOperationResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/EndpointOperationResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/EndpointResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/EndpointResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/EndpointSecretResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/EndpointSecretResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/FilterCondition.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/FilterCondition.js +0 -0
- /package/dist/openapi/{src/models → models}/GainersAndLosersDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/GainersAndLosersDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/GainersAndLosersPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/GainersAndLosersPage.js +0 -0
- /package/dist/openapi/{src/models → models}/JobDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/JobDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/JobStreamingDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/JobStreamingDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/Link.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/Link.js +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotCreateTokenInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotCreateTokenInput.js +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotCreateTokenReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotCreateTokenReply.js +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotSubmitCreateToken200Response.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotSubmitCreateToken200Response.js +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotSubmitCreateTokenInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotSubmitCreateTokenInput.js +0 -0
- /package/dist/openapi/{src/models → models}/PumpCreateTokenInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/PumpCreateTokenInput.js +0 -0
- /package/dist/openapi/{src/models → models}/PumpCreateTokenReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/PumpCreateTokenReply.js +0 -0
- /package/dist/openapi/{src/models → models}/QuoteResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/QuoteResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketClaimDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketClaimDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketClaimsPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketClaimsPage.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketReply.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketSendTxInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketSendTxInput.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketSendTxResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketSendTxResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketsPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketsPage.js +0 -0
- /package/dist/openapi/{src/models → models}/Resolution.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/Resolution.js +0 -0
- /package/dist/openapi/{src/models → models}/SendTxInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SendTxInput.js +0 -0
- /package/dist/openapi/{src/models → models}/SendTxResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SendTxResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/SwapInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SwapInput.js +0 -0
- /package/dist/openapi/{src/models → models}/SwapReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SwapReply.js +0 -0
- /package/dist/openapi/{src/models → models}/SwapRouteInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SwapRouteInput.js +0 -0
- /package/dist/openapi/{src/models → models}/SwapRouteResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SwapRouteResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/Token.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/Token.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreationDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreationDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreationPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreationPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreatorsDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreatorsDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenExtraDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenExtraDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenHolder.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenHolder.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenHolderPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenHolderPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenListPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenListPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenMarketData.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenMarketData.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenMetadata.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenMetadata.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenPriceDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenPriceDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenPricePage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenPricePage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenSocialMediasDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenSocialMediasDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenStat.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenStat.js +0 -0
- /package/dist/openapi/{src/models → models}/TopTradersDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TopTradersDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TopTradersPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TopTradersPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TradeDetailDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TradeDetailDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TradeEvent.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TradeEvent.js +0 -0
- /package/dist/openapi/{src/models → models}/TradePage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TradePage.js +0 -0
- /package/dist/openapi/{src/models → models}/TradeType.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TradeType.js +0 -0
- /package/dist/openapi/{src/models → models}/UpdateEndpointInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/UpdateEndpointInput.js +0 -0
- /package/dist/openapi/{src/models → models}/WalletBalanceDetailDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/WalletBalanceDetailDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/WalletBalancesDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/WalletBalancesDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/WalletPnlDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/WalletPnlDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/index.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/index.js +0 -0
- /package/dist/openapi/{src/runtime.d.ts → runtime.d.ts} +0 -0
- /package/dist/{esm/api → stream}/stream.fields.d.ts +0 -0
- /package/dist/{api → stream}/stream.fields.js +0 -0
- /package/dist/{api → stream}/stream.model.js +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
## @chainstream-io/sdk@0.1.6
|
|
2
|
+
|
|
3
|
+
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
|
+
|
|
5
|
+
Environment
|
|
6
|
+
* Node.js
|
|
7
|
+
* Webpack
|
|
8
|
+
* Browserify
|
|
9
|
+
|
|
10
|
+
Language level
|
|
11
|
+
* ES5 - you must have a Promises/A+ library installed
|
|
12
|
+
* ES6
|
|
13
|
+
|
|
14
|
+
Module system
|
|
15
|
+
* CommonJS
|
|
16
|
+
* ES6 module system
|
|
17
|
+
|
|
18
|
+
It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
|
|
19
|
+
|
|
20
|
+
### Building
|
|
21
|
+
|
|
22
|
+
To build and compile the typescript sources to javascript use:
|
|
23
|
+
```
|
|
24
|
+
npm install
|
|
25
|
+
npm run build
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Publishing
|
|
29
|
+
|
|
30
|
+
First build the package then run `npm publish`
|
|
31
|
+
|
|
32
|
+
### Consuming
|
|
33
|
+
|
|
34
|
+
navigate to the folder of your consuming project and run one of the following commands.
|
|
35
|
+
|
|
36
|
+
_published:_
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
npm install @chainstream-io/sdk@0.1.6 --save
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
_unPublished (not recommended):_
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
|
+
```
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StreamApi } from "./
|
|
2
|
-
import { DexApi, Configuration, TransactionApi, DefiSolanaMoonshotApi, DefiSolanaPumpfunApi, DexPoolApi, TokenApi, RankingApi, TradeApi, WalletApi, RedPacketApi, IpfsApi, WatchlistApi, BlockchainApi, JobsApi } from "./openapi
|
|
1
|
+
import { StreamApi } from "./stream";
|
|
2
|
+
import { DexApi, Configuration, TransactionApi, DefiSolanaMoonshotApi, DefiSolanaPumpfunApi, DexPoolApi, TokenApi, RankingApi, TradeApi, WalletApi, RedPacketApi, IpfsApi, WatchlistApi, BlockchainApi, JobsApi } from "./openapi";
|
|
3
3
|
export interface TokenProvider {
|
|
4
4
|
getToken(): Promise<string> | string;
|
|
5
5
|
}
|
|
@@ -13,7 +13,7 @@ export interface DexAggregatorOptions {
|
|
|
13
13
|
serverUrl?: string;
|
|
14
14
|
streamUrl?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare const LIB_VERSION = "0.1.
|
|
16
|
+
export declare const LIB_VERSION = "0.1.5";
|
|
17
17
|
export declare class DexClient {
|
|
18
18
|
readonly requestCtx: DexRequestContext;
|
|
19
19
|
readonly _configuration: Configuration;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,26 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { StreamApi } from "./stream";
|
|
11
|
+
import { DexApi, Configuration, TransactionApi, DefiSolanaMoonshotApi, DefiSolanaPumpfunApi, DexPoolApi, TokenApi, RankingApi, TradeApi, WalletApi, RedPacketApi, IpfsApi, WatchlistApi, BlockchainApi, JobsApi, } from "./openapi";
|
|
3
12
|
import { EventSourcePolyfill } from "event-source-polyfill";
|
|
4
|
-
export const LIB_VERSION = "0.1.
|
|
13
|
+
export const LIB_VERSION = "0.1.5";
|
|
5
14
|
class UserAgentMiddleware {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
context.init.headers
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
context.init.headers
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
pre(context) {
|
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
if (!context.init.headers) {
|
|
18
|
+
context.init.headers = {};
|
|
19
|
+
}
|
|
20
|
+
if (context.init.headers instanceof Headers) {
|
|
21
|
+
context.init.headers.set("User-Agent", `dex/${LIB_VERSION}/javascript`);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
context.init.headers["User-Agent"] = `dex/${LIB_VERSION}/javascript`;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
16
27
|
}
|
|
17
|
-
|
|
28
|
+
post(context) {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () { });
|
|
18
30
|
}
|
|
19
31
|
}
|
|
20
32
|
export class DexClient {
|
|
21
33
|
constructor(accessToken, options = {}) {
|
|
22
|
-
|
|
23
|
-
const
|
|
34
|
+
var _a, _b;
|
|
35
|
+
const baseUrl = (_a = options.serverUrl) !== null && _a !== void 0 ? _a : "https://api-dex.chainstream.io";
|
|
36
|
+
const streamUrl = (_b = options.streamUrl) !== null && _b !== void 0 ? _b : "wss://realtime-dex.chainstream.io/connection/websocket";
|
|
24
37
|
const tokenProvider = typeof accessToken === "string"
|
|
25
38
|
? {
|
|
26
39
|
getToken: () => accessToken,
|
|
@@ -30,14 +43,14 @@ export class DexClient {
|
|
|
30
43
|
const config = new Configuration({
|
|
31
44
|
basePath: baseUrl,
|
|
32
45
|
middleware: [new UserAgentMiddleware()],
|
|
33
|
-
accessToken:
|
|
46
|
+
accessToken: () => __awaiter(this, void 0, void 0, function* () {
|
|
34
47
|
return typeof accessToken === "string"
|
|
35
48
|
? accessToken
|
|
36
|
-
:
|
|
37
|
-
},
|
|
49
|
+
: yield accessToken.getToken();
|
|
50
|
+
}),
|
|
38
51
|
headers: {
|
|
39
|
-
|
|
40
|
-
}
|
|
52
|
+
"User-Agent": `dex/${LIB_VERSION}/javascript`,
|
|
53
|
+
},
|
|
41
54
|
});
|
|
42
55
|
this._configuration = config;
|
|
43
56
|
this.dex = new DexApi(config);
|
|
@@ -57,52 +70,55 @@ export class DexClient {
|
|
|
57
70
|
this.jobs = new JobsApi(config);
|
|
58
71
|
this.stream.connect();
|
|
59
72
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
waitForJob(jobId_1) {
|
|
74
|
+
return __awaiter(this, arguments, void 0, function* (jobId, timeout = 60000) {
|
|
75
|
+
const accessToken = typeof this.requestCtx.accessToken === "string"
|
|
76
|
+
? this.requestCtx.accessToken
|
|
77
|
+
: yield this.requestCtx.accessToken.getToken();
|
|
78
|
+
return new Promise((resolve, reject) => {
|
|
79
|
+
const sse = new EventSourcePolyfill(`${this.requestCtx.baseUrl}/jobs/${jobId}/streaming`, {
|
|
80
|
+
headers: {
|
|
81
|
+
Authorization: `Bearer ${accessToken}`,
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
const timeoutId = setTimeout(() => {
|
|
85
|
+
sse.close();
|
|
86
|
+
reject(new Error(`Job ${jobId} timed out after ${timeout}ms`));
|
|
87
|
+
}, timeout);
|
|
88
|
+
sse.onmessage = (event) => {
|
|
89
|
+
try {
|
|
90
|
+
console.log("event.data: ", event.data);
|
|
91
|
+
const data = JSON.parse(event.data);
|
|
92
|
+
if (data.status === "error") {
|
|
93
|
+
sse.close();
|
|
94
|
+
reject(new Error(`Error: ${data.message}`));
|
|
95
|
+
}
|
|
96
|
+
else if (data.status === "completed") {
|
|
97
|
+
clearTimeout(timeoutId);
|
|
98
|
+
sse.close();
|
|
99
|
+
resolve(data);
|
|
100
|
+
}
|
|
81
101
|
}
|
|
82
|
-
|
|
102
|
+
catch (e) {
|
|
83
103
|
clearTimeout(timeoutId);
|
|
84
104
|
sse.close();
|
|
85
|
-
|
|
105
|
+
reject(new Error("Error parsing event data"));
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
sse.onopen = () => {
|
|
109
|
+
console.log("SSE connection opened");
|
|
110
|
+
};
|
|
111
|
+
sse.onerror = (error) => {
|
|
112
|
+
var _a;
|
|
113
|
+
if ((_a = error.message) === null || _a === void 0 ? void 0 : _a.includes("No activity within")) {
|
|
114
|
+
console.log("SSE reconnecting due to inactivity...");
|
|
115
|
+
return;
|
|
86
116
|
}
|
|
87
|
-
}
|
|
88
|
-
catch (e) {
|
|
89
117
|
clearTimeout(timeoutId);
|
|
90
118
|
sse.close();
|
|
91
|
-
reject(new Error(
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
sse.onopen = () => {
|
|
95
|
-
console.log("SSE connection opened");
|
|
96
|
-
};
|
|
97
|
-
sse.onerror = (error) => {
|
|
98
|
-
if (error.message?.includes("No activity within")) {
|
|
99
|
-
console.log("SSE reconnecting due to inactivity...");
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
clearTimeout(timeoutId);
|
|
103
|
-
sse.close();
|
|
104
|
-
reject(new Error(`Error in SSE connection: ${error}`));
|
|
105
|
-
};
|
|
119
|
+
reject(new Error(`Error in SSE connection: ${error}`));
|
|
120
|
+
};
|
|
121
|
+
});
|
|
106
122
|
});
|
|
107
123
|
}
|
|
108
124
|
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dex Aggregator API
|
|
5
|
+
* Dex Aggregator API ⚡️
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: ai@sx.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { BlockchainDTOFromJSON, BlockchainLatestBlockDTOFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class BlockchainApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* CONTROLLER.GET_LATEST_BLOCK.DESCRIPTION
|
|
31
|
+
* CONTROLLER.GET_LATEST_BLOCK.SUMMARY
|
|
32
|
+
*/
|
|
33
|
+
getLatestBlockRaw(requestParameters, initOverrides) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters['chain'] == null) {
|
|
36
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getLatestBlock().');
|
|
37
|
+
}
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
41
|
+
const token = this.configuration.accessToken;
|
|
42
|
+
const tokenString = yield token("bearer", []);
|
|
43
|
+
if (tokenString) {
|
|
44
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
let urlPath = `/v1/blockchain/{chain}/latest_block`;
|
|
48
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
49
|
+
const response = yield this.request({
|
|
50
|
+
path: urlPath,
|
|
51
|
+
method: 'GET',
|
|
52
|
+
headers: headerParameters,
|
|
53
|
+
query: queryParameters,
|
|
54
|
+
}, initOverrides);
|
|
55
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BlockchainLatestBlockDTOFromJSON(jsonValue));
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* CONTROLLER.GET_LATEST_BLOCK.DESCRIPTION
|
|
60
|
+
* CONTROLLER.GET_LATEST_BLOCK.SUMMARY
|
|
61
|
+
*/
|
|
62
|
+
getLatestBlock(requestParameters, initOverrides) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const response = yield this.getLatestBlockRaw(requestParameters, initOverrides);
|
|
65
|
+
return yield response.value();
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* CONTROLLER.GET_SUPPORTED_BLOCKCHAINS.DESCRIPTION
|
|
70
|
+
* CONTROLLER.GET_SUPPORTED_BLOCKCHAINS.SUMMARY
|
|
71
|
+
*/
|
|
72
|
+
getSupportedBlockchainsRaw(initOverrides) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
const queryParameters = {};
|
|
75
|
+
const headerParameters = {};
|
|
76
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
77
|
+
const token = this.configuration.accessToken;
|
|
78
|
+
const tokenString = yield token("bearer", []);
|
|
79
|
+
if (tokenString) {
|
|
80
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
let urlPath = `/v1/blockchain`;
|
|
84
|
+
const response = yield this.request({
|
|
85
|
+
path: urlPath,
|
|
86
|
+
method: 'GET',
|
|
87
|
+
headers: headerParameters,
|
|
88
|
+
query: queryParameters,
|
|
89
|
+
}, initOverrides);
|
|
90
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BlockchainDTOFromJSON));
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* CONTROLLER.GET_SUPPORTED_BLOCKCHAINS.DESCRIPTION
|
|
95
|
+
* CONTROLLER.GET_SUPPORTED_BLOCKCHAINS.SUMMARY
|
|
96
|
+
*/
|
|
97
|
+
getSupportedBlockchains(initOverrides) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
const response = yield this.getSupportedBlockchainsRaw(initOverrides);
|
|
100
|
+
return yield response.value();
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @export
|
|
106
|
+
*/
|
|
107
|
+
export const GetLatestBlockChainEnum = {
|
|
108
|
+
Sol: 'sol',
|
|
109
|
+
Base: 'base',
|
|
110
|
+
Bsc: 'bsc',
|
|
111
|
+
Polygon: 'polygon',
|
|
112
|
+
Arbitrum: 'arbitrum',
|
|
113
|
+
Optimism: 'optimism',
|
|
114
|
+
Avalanche: 'avalanche',
|
|
115
|
+
Ethereum: 'ethereum',
|
|
116
|
+
Zksync: 'zksync',
|
|
117
|
+
Sui: 'sui'
|
|
118
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dex Aggregator API
|
|
5
|
+
* Dex Aggregator API ⚡️
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: ai@sx.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { MoonshotCreateTokenInputToJSON, MoonshotCreateTokenReplyFromJSON, MoonshotSubmitCreateToken200ResponseFromJSON, MoonshotSubmitCreateTokenInputToJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class DefiSolanaMoonshotApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* CONTROLLER.MOONSHOT.CREATE_TOKEN.DESCRIPTION
|
|
31
|
+
* CONTROLLER.MOONSHOT.CREATE_TOKEN.SUMMARY
|
|
32
|
+
*/
|
|
33
|
+
moonshotCreateTokenRaw(requestParameters, initOverrides) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters['moonshotCreateTokenInput'] == null) {
|
|
36
|
+
throw new runtime.RequiredError('moonshotCreateTokenInput', 'Required parameter "moonshotCreateTokenInput" was null or undefined when calling moonshotCreateToken().');
|
|
37
|
+
}
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
41
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
42
|
+
const token = this.configuration.accessToken;
|
|
43
|
+
const tokenString = yield token("bearer", []);
|
|
44
|
+
if (tokenString) {
|
|
45
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
let urlPath = `/v1/solana/moonshot/create`;
|
|
49
|
+
const response = yield this.request({
|
|
50
|
+
path: urlPath,
|
|
51
|
+
method: 'POST',
|
|
52
|
+
headers: headerParameters,
|
|
53
|
+
query: queryParameters,
|
|
54
|
+
body: MoonshotCreateTokenInputToJSON(requestParameters['moonshotCreateTokenInput']),
|
|
55
|
+
}, initOverrides);
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MoonshotCreateTokenReplyFromJSON(jsonValue));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* CONTROLLER.MOONSHOT.CREATE_TOKEN.DESCRIPTION
|
|
61
|
+
* CONTROLLER.MOONSHOT.CREATE_TOKEN.SUMMARY
|
|
62
|
+
*/
|
|
63
|
+
moonshotCreateToken(requestParameters, initOverrides) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const response = yield this.moonshotCreateTokenRaw(requestParameters, initOverrides);
|
|
66
|
+
return yield response.value();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* CONTROLLER.MOONSHOT.SUBMIT_CREATE_TOKEN.DESCRIPTION
|
|
71
|
+
* CONTROLLER.MOONSHOT.SUBMIT_CREATE_TOKEN.SUMMARY
|
|
72
|
+
*/
|
|
73
|
+
moonshotSubmitCreateTokenRaw(requestParameters, initOverrides) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
if (requestParameters['moonshotSubmitCreateTokenInput'] == null) {
|
|
76
|
+
throw new runtime.RequiredError('moonshotSubmitCreateTokenInput', 'Required parameter "moonshotSubmitCreateTokenInput" was null or undefined when calling moonshotSubmitCreateToken().');
|
|
77
|
+
}
|
|
78
|
+
const queryParameters = {};
|
|
79
|
+
const headerParameters = {};
|
|
80
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
81
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
82
|
+
const token = this.configuration.accessToken;
|
|
83
|
+
const tokenString = yield token("bearer", []);
|
|
84
|
+
if (tokenString) {
|
|
85
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
let urlPath = `/v1/solana/moonshot/submitCreateToken`;
|
|
89
|
+
const response = yield this.request({
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'POST',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
body: MoonshotSubmitCreateTokenInputToJSON(requestParameters['moonshotSubmitCreateTokenInput']),
|
|
95
|
+
}, initOverrides);
|
|
96
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MoonshotSubmitCreateToken200ResponseFromJSON(jsonValue));
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* CONTROLLER.MOONSHOT.SUBMIT_CREATE_TOKEN.DESCRIPTION
|
|
101
|
+
* CONTROLLER.MOONSHOT.SUBMIT_CREATE_TOKEN.SUMMARY
|
|
102
|
+
*/
|
|
103
|
+
moonshotSubmitCreateToken(requestParameters, initOverrides) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
const response = yield this.moonshotSubmitCreateTokenRaw(requestParameters, initOverrides);
|
|
106
|
+
return yield response.value();
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dex Aggregator API
|
|
5
|
+
* Dex Aggregator API ⚡️
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: ai@sx.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { PumpCreateTokenInputToJSON, PumpCreateTokenReplyFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class DefiSolanaPumpfunApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* CONTROLLER.PUMPFUN.CREATE_TOKEN.DESCRIPTION
|
|
31
|
+
* CONTROLLER.PUMPFUN.CREATE_TOKEN.SUMMARY
|
|
32
|
+
*/
|
|
33
|
+
pumpfunCreateTokenRaw(requestParameters, initOverrides) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters['pumpCreateTokenInput'] == null) {
|
|
36
|
+
throw new runtime.RequiredError('pumpCreateTokenInput', 'Required parameter "pumpCreateTokenInput" was null or undefined when calling pumpfunCreateToken().');
|
|
37
|
+
}
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
41
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
42
|
+
const token = this.configuration.accessToken;
|
|
43
|
+
const tokenString = yield token("bearer", []);
|
|
44
|
+
if (tokenString) {
|
|
45
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
let urlPath = `/v1/solana/pumpfun/create`;
|
|
49
|
+
const response = yield this.request({
|
|
50
|
+
path: urlPath,
|
|
51
|
+
method: 'POST',
|
|
52
|
+
headers: headerParameters,
|
|
53
|
+
query: queryParameters,
|
|
54
|
+
body: PumpCreateTokenInputToJSON(requestParameters['pumpCreateTokenInput']),
|
|
55
|
+
}, initOverrides);
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PumpCreateTokenReplyFromJSON(jsonValue));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* CONTROLLER.PUMPFUN.CREATE_TOKEN.DESCRIPTION
|
|
61
|
+
* CONTROLLER.PUMPFUN.CREATE_TOKEN.SUMMARY
|
|
62
|
+
*/
|
|
63
|
+
pumpfunCreateToken(requestParameters, initOverrides) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const response = yield this.pumpfunCreateTokenRaw(requestParameters, initOverrides);
|
|
66
|
+
return yield response.value();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|